﻿ # Git aliases
 # Copyright under the GNU/GPLv2 or later
 # (C) Jesús Amieiro Becerra
 # http://www.jesusamieiro.com
 # jesus@jesusamieiro.com
 
 alias gs='git status '              # Show the working tree status
 alias gsh='git show '               # Show various types of objects
 alias ga='git add '                 # Add file contents to the index
 alias ga.='git add . '              # Add all file contents to the index
 alias gl="git log --graph --pretty=format:'%an: %s - %Cred%h%Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative -10"
 alias gl10='git log --oneline -10 ' # Show the last 10 commits, 1 per line
 alias gb='git branch '              # List local branches
 alias gba='git branch -a '          # List all branches
 alias gc='git commit '              # Record changes to the repository
 alias gd='git diff '                # Changes in the working tree not yet staged for the next commit.
 alias gd1='git diff HEAD^ HEAD '    # Compare the version before the last commit and the last commit.
 alias gd2='git diff HEAD^^ HEAD '   # Compare the version before the penultimate commit and the last commit.
 alias gds='git diff --staged '      # Changes between the index and your last commit
 alias go='git checkout '            # Checkout a branch
 alias gob='git checkout -b '        # Create a new branch and checkout it 
 alias gr='git remote '
 alias grv='git remote -v '          #   
 alias gph='git push '               # Update remote refs along with associated objects
 alias gpl='git pull '               #  
