Git and Arcanist Reference
Git and Arcanist Reference
Git Cheat Sheet by Alex Kras (RECOMMENDED)
19 Tips for Everyday Git Use by Alex Kras (RECOMMENDED)
Atlassian: Basic Git Commands
Understanding Git vs. SVN
Reference Charts
Branching | Commit Workflow | Git and Arcanist |
Visualizing Version Tracking | Where To Commit? | |
Quick Reference
Download a repository.
$ git clone <URL>
Get updates with...
$ git pull
Lint files...
$ arc lint --lintall
Send new changes with...
$ git add . $ git commit # Fill out the message. $ arc diff
Commit approved changes to branch with...
$ arc amend $ git push origin foo # foo is the branch name.
Branches
You can move work out of master into a branch at any time.
To view all branches...
$ git branch
To create a branch named "foo".
$ git branch foo
To move work to the "foo" branch...
$ git checkout foo
To merge the current branch down to master.
$ arc land
To merge master into the current branch.
$ git merge master
Tags
None
Subscribers
None
- Last Author
- jcmcdonald
- Last Edited
- Jun 30 2016, 10:13 AM