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 :: kill tensorboard process 
Shell :: powershell elevate to admin within a function 
Shell :: install httrack on ubuntu 20.04 
Shell :: How to push code to your github repository using token authentication 
Shell :: git keeps changed file when switching to different branch 
Shell :: how to allow traffic on port 8080 in centos 7 
Shell :: how to check if a python script is running 
Shell :: sonarqube docker setup 
Shell :: scp send file 
Shell :: install exact version npm 
Shell :: linux command disk speed test 
Shell :: zsh: command not found: julia 
Shell :: start chrome linux 
Shell :: stop tracking files git 
Shell :: how to install ssh in windows 10 
Shell :: linux command for file size 
Shell :: install fontforge linux 
Shell :: workbench linux 
Shell :: adb push image to gallery 
Shell :: Error: ENOSPC: System limit for number of file watchers reached, watch 
Shell :: git compare two branches with meld 
Shell :: exit vim 
Shell :: install oh my zsh mac 
Shell :: check if a port is working 
Shell :: reverse string in shell script 
Shell :: install angular cli version 
Shell :: nodemon script 
Shell :: set gunicorn timeout via command 
Shell :: Installing plugins with vim-plug 
Shell :: unzip a tar.gz file in linux 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =