Last active
May 13, 2025 17:23
-
-
Save leandroandrade/1ffc88a2bb79205cb5378516f13bc8af to your computer and use it in GitHub Desktop.
Git aliases
This file contains hidden or 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 = username | |
email = email | |
[github] | |
user = username_github | |
[includeIf "gitdir:~/some/dir/"] | |
path = .gitconfig_work | |
[init] | |
defaultBranch = main | |
[pull] | |
ff = only | |
[alias] | |
i = init | |
a = add | |
ca = commit -a | |
cam = commit -am | |
cm = commit -m | |
s = status | |
pom = push origin main | |
pog = push origin gh-pages | |
puom = pull origin main | |
puog = pull origin gh-pages | |
cob = checkout -b | |
co = checkout | |
db = branch -d | |
dbr = push origin --delete | |
fp = fetch --prune --all | |
l = log --oneline --decorate --graph | |
lall = log --oneline --decorate --graph --all | |
ls = log --oneline --decorate --graph --stat | |
lt = log --graph --decorate --pretty=format:'%C(yellow)%h%Creset%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment