Skip to content

Instantly share code, notes, and snippets.

@ahnbizcad
Last active April 14, 2022 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahnbizcad/318390dbd2da718b6594 to your computer and use it in GitHub Desktop.
Save ahnbizcad/318390dbd2da718b6594 to your computer and use it in GitHub Desktop.
Bash Alias Shortcut Commands
#
# 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'
# command
git config --show-origin
#system
etc/
#global
home/{username}/
#project/local
(in repo's .git dir)
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