Skip to main content

Posts

Showing posts with the label Git

Git and Github useful commands

Working on a personal forked repository Most of the time when you are working in an organisation who uses git, you will be requested to fork the project and create pull for your feature or bug fixes (Most of the open source contribution in git will be happening like this). In this note I will let you know some useful git commands which will be very helpful for you in your day to day life with git. I am not going to explain any git technical terms. I am assuming you already know about it or all those terms are linked to a proper source for more information. Lets start. You can fork any github project by clicking the fork icon on  the top right of a repository.  git clone git@github.com:<your-github-id>/Project.git  - to clone your forked Project (personal repo) cd Project/  - get into your repository git fetch origin  - will fetch all the details/indexes (branches and commits) from  remote origin but will not apply. git branch  - is used to check a