Saving git credentials when pushing to a remote
When you want to push changes upstream, git will prompt for your login details. To ease pushing changes, you may want to avoid doing this each and every time.
Last time I set this up I followed this steps detailed on AskUbuntu. This answer basically details the steps to:
1. Install the package libgnome-keyring-dev
2. Compile some files that git provides
3. Updating your Git config to use this compiled code
Just reviewing that to set up a new instance, this method is actually deprecated now since it's steps specific to gnome. Actually, the steps are very much the same, with one underlying change - the package you install in the first step.
More detail on StackOverflow, but basically the steps to set this up:
That's all there is to it! Now when you push, you won't be prompted for your password each time (after an initial push where you enter your credentials).
Last time I set this up I followed this steps detailed on AskUbuntu. This answer basically details the steps to:
1. Install the package libgnome-keyring-dev
2. Compile some files that git provides
3. Updating your Git config to use this compiled code
Just reviewing that to set up a new instance, this method is actually deprecated now since it's steps specific to gnome. Actually, the steps are very much the same, with one underlying change - the package you install in the first step.
More detail on StackOverflow, but basically the steps to set this up:
sudo apt install libsecret-1-0 libsecret-1-dev cd /usr/share/doc/git/contrib/credential/libsecret
sudo make
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
That's all there is to it! Now when you push, you won't be prompted for your password each time (after an initial push where you enter your credentials).