Upgrade git on Raspbian



If the raspbian version is wheezy, then follow the steps below:

  1. Edit sources.list

    sudo vi /etc/apt/sources.list
    

    add one line:

    deb http://http.debian.net/debian wheezy-backports main
    
  2. apt-get

    sudo apt-get -t wheezy-backports install git