Skip to content

Instantly share code, notes, and snippets.

@gidgid
Created October 10, 2019 19:57
Show Gist options
  • Save gidgid/b2729e04110ce42dfc177f3ac8b6d9fc to your computer and use it in GitHub Desktop.
Save gidgid/b2729e04110ce42dfc177f3ac8b6d9fc to your computer and use it in GitHub Desktop.
Shows my adds and checkouts in Gitconfig
[alias]
# Adding files
## "add untracked" - no untracked files
au = add -u
## "add all" - add everything. https://stackoverflow.com/questions/572549/difference-between-git-add-a-and-git-add
aa = add -A
## "add patch" - choose what to add
ap = add -p
# Checkouts
co = checkout
## "checkout branch" - checkout to a newly created branch (git branch <name>; git checkout <name>)
cob = checkout -b
## "checkout patch" - decide what to checkout
cop = checkout -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment