Github Repository Management - Aaronearlerichardson/CMRIF_preprocess GitHub Wiki
Basics
Github is a tool to allow for open source script management and distribution. Here is listed some commands anyone can use to save their work and share it here. All of these commands must be executed inside your local repository directory.
Create a new local repository in the current directory
git clone <repository url>
Add a file to your local repository
git add <name of file>
Save edits for already added files in your local repository
git commit --all -m "some message here"
Push changes from your local repository to the master branch here
git push enterprise master
Update your local repository to the latest version (any branch)
git pull enterprise <branch name>
Creating A New Branch
Create a new branch locally
git branch <name of your new branch>
Switch current repository to new branch
git checkout <name of your new branch>
Add branch to remote
git push enterprise
Delete a branch on your local filesystem (you must first switch back to master using checkout)
git branch -d <name of your new branch>
Delete a branch on remote (don't forget the colon)
git push enterprise :<name of your new branch>