GIT CL
Create repositories
$ git init
Turn an existing directory into a git repository
$ git clone [url]
Clone (download) a repository that already exists on
GitHub, including all of the files, branches, and commits
Branches
$ git branch [branch-name]
Creates a new branch
$ git checkout [branch-name]
switch to new branch
$ git merge [branch]
Combines the specified branch’s history into the
current branch. This is usually done in pull requests,
but is an important Git operation.
Create remote repositories
$ git remote add origin https://github.com/LiMarcus/mushup.git
Push current to remote
$ git push -u origin master
add
$ git add*
$ git commit -m "update"
Push
$ git push --all
Pull
$ git pull [remotename] [branchname]