Skip to content

Instantly share code, notes, and snippets.

@g3ortega
Created January 12, 2014 14:11
Show Gist options
  • Save g3ortega/8384992 to your computer and use it in GitHub Desktop.
Save g3ortega/8384992 to your computer and use it in GitHub Desktop.
Basic Workflow with Git
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