Skip to content

Instantly share code, notes, and snippets.

@ohararyan
Created July 3, 2014 02:15
Show Gist options
  • Save ohararyan/e3d828508ea683f4dac3 to your computer and use it in GitHub Desktop.
Save ohararyan/e3d828508ea683f4dac3 to your computer and use it in GitHub Desktop.
git status
<!-- check the status of what is happening right now -->
git add <files>
<!-- add your files to be commited -->
<!-- check it again (see what's happening) -->
git commit -m "what did you commit and why?"
<!-- commit your files with a meaningful message -->
git pull
<!-- pull down any changes from the remote repository and merge
these on top of our commit so we don't have any conflicts when we push our changes up -->
git push
<!-- push your changes to the remote repository -->
git checkout gh-pages
<!-- switch to the gh-pages branch -->
git merge master
<!-- merge in the changes on master -->
git push
<!-- publish the changes to gh-pages -->
git checkout master
<!-- all done start making changes on master again -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment