Last active
April 14, 2022 02:06
-
-
Save ahnbizcad/318390dbd2da718b6594 to your computer and use it in GitHub Desktop.
Bash Alias Shortcut Commands
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 | |
# | |
[user] | |
email = ----FILL THIS OUT---- | |
name = ----FILL THIS OUT---- | |
[alias] | |
lg = log --oneline --graph --decorate --abbrev-commit --pretty=format:'%C(bold blue)[%cn] %C(green)(%cr) %C(yellow)%h %C(red)%d %C(reset)%s' | |
br = branch | |
co = checkout | |
cm = commit | |
df = diff --color-moved=dimmed-zebra | |
sh = stash | |
st = status | |
[color] | |
ui = auto | |
[push] | |
default = simple | |
[core] | |
longpaths = true | |
#alias gi='git init' | |
#alias gcl='git clone' | |
# | |
#alias gf='git fetch' | |
#alias gp='git push' | |
# | |
#alias gco='git checkout' | |
# | |
#alias gb='git branch' | |
#alias gmg='git merge' | |
#alias gbi='git bisect' | |
#alias grb='git rebase' | |
#alias grs='git reset' | |
#alias grv='git revert' | |
# | |
#alias gst='git stash' | |
# | |
#alias ga='git add -A' | |
#alias grm='git rm' | |
#alias gmv='git mv' | |
#alias gg='git grep' | |
#alias gc='git commit -m' | |
# | |
#alias gs='git status' | |
#alias gk='gitk' | |
#alias gd='git diff' | |
#alias gl='git log --pretty=oneline' | |
#alias gsh='git show' |
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
# command | |
git config --show-origin | |
#system | |
etc/ | |
#global | |
home/{username}/ | |
#project/local | |
(in repo's .git dir) |
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
https://jonsuh.com/blog/git-command-line-shortcuts/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment