Skip to content

Instantly share code, notes, and snippets.

@giansalex
Last active May 26, 2020 23:01
Show Gist options
  • Save giansalex/ac96398f9e781ba2f0edc1c60da58fe9 to your computer and use it in GitHub Desktop.
Save giansalex/ac96398f9e781ba2f0edc1c60da58fe9 to your computer and use it in GitHub Desktop.
Git Commands Alias
alias gs='git status'
alias ga='git add'
alias gl='git pull'
alias gp='git push'
alias gc='git clone'
alias gck='git checkout'
alias ga='git add'
alias grh='git reset HEAD~1'
alias gm='git merge'
alias gcm='git commit -m '
alias gmtool="git mergetool"
alias gmend="git merge --continue"
alias glog="git log"

Configuration

Copy file .bashrc to folder %userprofile% (on Windows)

Usage

Reopen git bash console.

# Change branch
gck HD-3465

# Update branchs
gl

# Push commits to remote
gp

# Commit
gcm "new changes"

# Merge
gm HD-3465

# Resolve conflict tool
gmtool

# End resolve conflicts
gmend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment