As configured in my dotfiles
-
g = git
-
gst = git status
-
ga = git add
-
gb = git branch
-
gcb = git checkout -b
-
gcm = git checkout master
-
gd = git diff
-
gcp = git cherry-pick
-
gl = git pull
-
gp = git push
-
grbi = git rebase -i
-
gsta = git stash
-
gstp = git stash pop
-
gstd = git stash drop
-
gstl = git stash list
-
current_branch ==> returns name of current branch
-
current_repository ==> returns names of current remotes
To ignore local changes to a tracked file:
$ git update-index --skip-worktree FILENAME
$ git update-index --no-skip-worktree FILENAME
TODO: Move contents of git_notes.txt to here