-
Notifications
You must be signed in to change notification settings - Fork 0
Making Changes
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 statusto 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 examplegit add src/*will stage all modified files insrc/for commit. - Once
git statusshows all the files you want to commit, callgit 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.