Created
January 12, 2014 14:11
-
-
Save g3ortega/8384992 to your computer and use it in GitHub Desktop.
Basic Workflow with Git
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
git pull #pull all the changes from the remote repository | |
git checkout -b branch-name-here #create a new branch for your bug/feature/issue | |
#DO YOUR WORK HERE | |
#keep it in small chunks, the smaller your commits the better, in case things go wrong | |
git add . #and any new les you ve created | |
git status and/or git diff #see the changes you re going to commit | |
git commit -m “Detailed message here” #make the commit with a nice detailed message | |
git checkout master #switch back to the master branch when the feature is done, your tests pass right? | |
git merge branch-name-here #update the master branch to update the master with all your changes | |
git push #send your changes up to the remote repository |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment