ubuntu git set username and password code example
Example 1: how to change username and password in git
# change the whole things in one go
git config --global credential.helper cache # to enable credentail helper
git config --global --edit
Example 2: save account to git
git config --global credential.helper store
Example 3: add credentials git linux
# This cache timeout is in seconds
$ git config --global credential.helper 'cache --timeout=3600'