Skip to content
wnayes edited this page Dec 13, 2012 · 1 revision

Before making any changes, be sure you are at the latest commit! Run git pull from the Git Bash to fetch and merge any changes from Github.

The basic workflow is:

  • Write code, make changes, etc.
  • When finished, check git status to see what is ready to be staged for commit.
  • For all of the red files listed, run git add filename, where filename is the path to the modified files. Wildcards can be used to speed this up, for example git add src/* will stage all modified files in src/ for commit.
  • Once git status shows all the files you want to commit, call git commit -m "Message describing commit." to create a local commit.
  • If that is successful, send your changes to Github via git push.

It may be helpful to use branches to work on larger changes or new features. Branches allow several commits to be easily wiped away or pushed at once when changes are completed.

Clone this wiki locally