Last active
May 13, 2022 10:11
-
-
Save eesa1980/cf59f790b04f74be75a7cea3e262e99d to your computer and use it in GitHub Desktop.
Github Aliases #git #gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is Git's per-user configuration file. | |
[user] | |
name = Lewis James-Odwin | |
email = [email protected] | |
[core] | |
editor = "code -w" | |
excludesfile = /Users/lewisjamesodwin/.gitignore_global | |
ignorecase = false | |
[alias] | |
addco = "!git add . && git commit -m" | |
addcov = "!git add . && git commit -v" | |
addhunk = "!git add --patch " | |
amend = "!git commit --amend -v" | |
b = "!git branch -avv" | |
ch = "!git checkout" | |
co = "!git commit -m " | |
conf = "!git config --global --edit" | |
cov = "!git commit -v" | |
del = "!git branch -d" | |
delo = "!git push origin --delete" | |
delu = "!git push upstream --delete" | |
diffs = "!git diff --staged" | |
fa = "!git fetch --all" | |
nb = "!git checkout -b" | |
skip = "!git update-index --skip-worktree " | |
st = "!git status" | |
unskip = "!git update-index --no-skip-worktree " | |
l = "!git log --oneline" | |
pushtags = "!git push origin --tags" | |
pulltags = "!git fetch --tags -f" | |
unpushed = "!git log --branches --not --remotes --no-walk --decorate --oneline" | |
rmc = "!git rm -r --cached" | |
[pull] | |
# rebase = true | |
# Patch/hunk breakdown (https://stackoverflow.com/questions/1085162/commit-only-part-of-a-file-in-git) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment