sudo apt install git-all sudo apt-get remove git sudo apt-get remove --auto-remove git // with dependencys // If you also want to delete configuration and/or data files of git from Ubuntu Trusty then this will work: sudo apt-get purge git sudo apt-get purge --auto-remove git // with dependencys
git config --global user.name YOUR_USRE_NAME // set username