Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git pull with username and password

Update the URL of origin remote using SSH instead of HTTPS;
git remote set-url origin git@github.com:username/repo.git

OR

Make Git store the username and password and it will never ask for them.

git config --global credential.helper store

Save the username and password for a session (cache it);

git config --global credential.helper cache

You can also set a timeout for the above setting

git config --global credential.helper 'cache --timeout=600'

Git will never ask for your credentials again.
Comment

git pull with username and password linux

In a terminal, run:

$ git config --global credential.helper cache

# Set git to use the credential memory cache
To customize the cache timeout, you can do:

$ git config --global credential.helper 'cache --timeout=3600'
# Set the cache to timeout after 1 hour (setting is in seconds)
Comment

PREVIOUS NEXT
Code Example
Shell :: scp bash command 
Shell :: unzip gz file linux 
Shell :: view all of your git settings 
Shell :: load .bashrc 
Shell :: Custom Bash Shell 
Shell :: how to format pendrive on ubuntu 
Shell :: static ip wsl2 
Shell :: vim delete to end of file 
Shell :: how to install source plugin gatsby 
Shell :: aws lightsail ssl installation 
Shell :: awk field separator multiple characters 
Shell :: add remote github 
Shell :: bootar pendrive linux 
Shell :: pip install influxdb 
Shell :: add folders to gitignore 
Shell :: Fetch submodules recursively 
Shell :: how to install axios in react 
Shell :: update node manjaro 
Shell :: kubectl restart recreate pod 
Shell :: installing flutter_native_splash 
Shell :: random number in bash 
Shell :: sed add newline 
Shell :: echo to add line to file 
Shell :: how to open terminal in vs code 
Shell :: write a script to shutdown at a time in linux 
Shell :: Generate Key Hashes For Facebook login Android app 
Shell :: DNS_PROBE_FINISHED_NXDOMAIN linux 
Shell :: heroku rename could not find that app 
Shell :: install ansible on linux 
Shell :: files 644 folders 755 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =