Created
November 21, 2013 13:06
-
-
Save andineck/7581239 to your computer and use it in GitHub Desktop.
install git on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# other things that you might need as well | |
# git | |
sudo apt-get install git-core | |
# configure git via file | |
sudo nano ~/.gitconfig | |
# or configure git via commands | |
git config --global user.name "NewUser" | |
git config --global user.email [email protected] | |
# keeps user credentials in cache fo 1h | |
git config --global credential.helper "cache --timeout=3600" | |
# check git settings | |
git config --list |
install latest version
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
use git with untrusted certificates
git config --global http.sslverify false
sudo apt-get install libgnome-keyring-dev
cd /usr/share/doc/git/contrib/credential/gnome-keyring
sudo make
git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
keeps user credentials in cache for 1 year
git config --global credential.helper "cache --timeout=31536000"