git credential cache

C++
# Set credential cache to avoid typing password every time
# (Timeout time is in seconds i.e. 14 hours)
# For Ubuntu

git config credential.helper 'cache --timeout=50400'# Set the time to remember your credentials for (in seconds). The command below sets it to 10 minutes.
$ git config --global credential.helper 'cache --timeout=600'$ git config --global credential.helper wincred
Source

Also in C++: