Created
December 26, 2016 17:32
Git commands that can come in handy during developement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get all remote branches | |
git fetch --all | |
git checkout -b <ur_new_local_branch_name> remotes/origin/<Remote_Branch_Name> | |
Check which local branch of yours track which remote branch in Git | |
git branch -vv | |
Obtain code from Git | |
Gets the master branch code. | |
git clone https://dineshvg@bitbucket.org/dineshvg/shiftbuddy.git | |
Git code commit cycle | |
First pull changes from other people onto your local | |
git pull | |
After making the code changes check what are the changes that you are committing | |
git status | |
To commit all changes | |
git add . | |
git commit -m "#SB-<Issue number> message added for the commit" | |
git push | |
( OR ) | |
git remote -v | |
git fetch origin | |
git branch -avv | |
git branch branch_name origin/branch_name | |
git checkout branch_name | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment