Last active
June 12, 2024 00:48
-
-
Save disouzam/03779f9c7163b890deb304f293b3e709 to your computer and use it in GitHub Desktop.
Useful git configs
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
[user] | |
name = Dickson Souza | |
email = 36424026+disouzam@users.noreply.github.com | |
[core] | |
repositoryformatversion = 0 | |
filemode = false | |
bare = false | |
logallrefupdates = true | |
symlinks = false | |
ignorecase = true | |
excludesfile = ../.vscode/** | |
[checkout] | |
defaultremote = fork | |
[push] | |
defaultremote = fork | |
[alias] | |
all = add . | |
amend = commit --amend | |
ce = commit | |
id = log --pretty=format:%h -1 | |
check = diff --check | |
ci = commit -m | |
co = checkout | |
cb = checkout --track | |
cluntd = clean --dry-run | |
cluntf = clean -q -f | |
cpp = cherry-pick | |
cpn = cherry-pick --no-commit | |
cpr = cherry-pick -x --edit | |
deltag = push --tags --delete | |
diffA = diff --cached --diff-filter=A -w --unified=0 | |
diffD = diff --cached --diff-filter=D -w --unified=0 | |
diffM = diff --cached --diff-filter=M -w --unified=0 | |
diffStaged = diff --cached -w --unified=0 | |
fe = fetch --prune --prune-tags --verbose | |
fe2 = fetch --prune --verbose | |
fl = log --format=oneline | |
lo = log --decorate --pretty=medium | |
lo2 = log --stat --pretty=medium | |
lo3 = log --stat -p --pretty=medium | |
logfile = log --pretty=medium -p | |
lol = log --graph --oneline --decorate | |
lolAll = log --graph --oneline --branches --all --decorate | |
nb = checkout -b | |
pl = pull | |
ps = push | |
pslease = push --force-with-lease | |
ssh = stash show -u | |
ssha = stash push --staged | |
sshl = stash list -p --stat --pretty=medium -n 1 -s --skip | |
sshp = stash show -u -p | |
st = status -uall | |
stage = add | |
stat = diff --cached --stat | |
summary = log --summary --pretty='1. %Cred**%h**%Creset %s%n%b' | |
tg = tag -l | |
tgref = show-ref --tags -s -d | |
track = push --set-upstream origin | |
unstage = reset HEAD -- | |
up = !git co && git fe && git pl | |
[fetch] | |
prune = true | |
[log] | |
abbrevCommit = true | |
[format] | |
pretty = 1. %Cred**%h**%Creset %s | |
[push] | |
autoSetupRemote = true |
Added e-mail configuration for GitHub repos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Diff of the last change: