Skip to content

Instantly share code, notes, and snippets.

@roartalent
Last active May 11, 2024 03:00
Show Gist options
  • Save roartalent/1076189db925351a3eac to your computer and use it in GitHub Desktop.
Save roartalent/1076189db925351a3eac to your computer and use it in GitHub Desktop.
Some common commands I use on git bash (windows)
#common bash commands
alias cl='clear'
alias ll='ls -lah'
#programs <replace with your sublme path>
alias subl='"/c/dev/programs/Sublime Text 3/sublime_text.exe"'
#### git commands ####
alias gt='git'
## git checkout cmds
alias gpush='git push'
alias gpushh='git push origin HEAD'
alias gdel='git push origin --delete'
## git checkout cmds
alias gclb='git checkout -b'
alias gcm='git checkout master'
alias g='git checkout -'
alias gco='git checkout'
## git stash cmds
alias gst='git stash'
alias gsu='git stash -u'
alias gsp='git stash pop'
##git merge cmds
alias gm='git merge master'
##git diff cmds
alias gd='git diff'
alias gdc='git diff --cached'
##git commit cmds
alias gcmsg='git commit -m'
alias gc='git commit'
alias ga='git add'
##git pull cmds
alias gpull='git pull'
##git status cmds
alias gs='git status'
##git branch
alias gb='git branch'
alias gbr='git branch -r'
##git log
alias glp='git log -p'
##git config list
alias gconfiglist='git config --global --list'
## edit bashrc
alias ebash='subl ~/.bashrc'
## edit gitconfig
alias egitconfig='subl ~/.gitconfig'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment