Last active
July 29, 2025 11:01
-
-
Save vikytech/c320757493a6f9b48d37 to your computer and use it in GitHub Desktop.
Common git alias
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
| [init] | |
| defaultBranch = main | |
| [core] | |
| autocrlf = input | |
| [alias] | |
| st = status | |
| ca = commit -am | |
| co = checkout | |
| ci = commit -m | |
| br = branch | |
| gp = push | |
| glr = pull --reb | |
| gl = pull | |
| [pull] | |
| rebase = true | |
| autoStash = true | |
| [rebase] | |
| autoStash = true | |
| [push] | |
| default = simple | |
| [filter "media"] | |
| required = true | |
| clean = git media clean %f | |
| smudge = git media smudge %f | |
| [filter "lfs"] | |
| clean = git-lfs clean -- %f | |
| smudge = git-lfs smudge -- %f | |
| required = true | |
| process = git-lfs filter-process | |
| [gui] | |
| fontui = -family Courier -size 13 -weight normal -slant roman -underline 0 -overstrike 0 | |
| fontdiff = -family \"Courier New\" -size 11 -weight normal -slant roman -underline 0 -overstrike 0 | |
| [includeIf "gitdir:~/Projects/"] | |
| path = ~/Projects/.client-git-config |
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
| ##Git | |
| alias g='git' | |
| alias gst='git status' | |
| alias gpl='git pull' | |
| alias gpr='git pull --rebase' | |
| alias gpu='git push' | |
| alias gpush='git push' | |
| alias gau='git add --update' | |
| alias gc='git commit -m' | |
| alias gcan='git commit --amend --no-edit' | |
| alias gca='git commit --amend' | |
| alias gb='git branch' | |
| alias gba='git branch -a' | |
| alias gco='git checkout' | |
| alias gs='git switch' | |
| alias gsb='git switch -c' | |
| alias gcob='git checkout -b' | |
| alias gcot='git checkout -t' | |
| alias gcotb='git checkout --track -b' | |
| alias glog='git log' | |
| alias glogp='git log --pretty=format:"%h %s" --graph' | |
| alias gcl='git clean -df' | |
| alias gg='git gui' | |
| alias gd='git diff --color-words' |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update .gitconfig