Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git push without password

1. switch origin to ssh mode
$ git remote -v
> origin  https://github.com/<your_name>/<repo_name>.git (fetch)
> origin  https://github.com/<your_name>/<repo_name>.git (push)

$ git remote set-url origin git@github.com:<your_name>/<repo_name>.git

2. register your computer ssh key to your github account
$ ssh-keygen -t ed25519 -C "your_email@example.com"
> Enter passphrase (empty for no passphrase): [Type a passphrase]
> Enter same passphrase again: [Type passphrase again]

$ cat ~/.ssh/id_ed25519.pub
  # Then select and copy the contents of the id_ed25519.pub file
  # displayed in the terminal to your clipboard
  # then go to https://github.com/settings/keys
  # paste key in, give it a name and save


Overall: there's 2 things need done
1. switch origin to ssh mode: 
details: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
2. register your computer ssh key to your github account
details: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
Comment

PREVIOUS NEXT
Code Example
Shell :: pg_dump export single table 
Shell :: store pass git 
Shell :: how to download virtualbox on kali linux 
Shell :: cookiecutter 
Shell :: set node role kubernetes 
Shell :: cent os 8 delete all packages 
Shell :: generate keystore file for android 
Shell :: bash get public ip 
Shell :: git pull <remote 
Shell :: kali linux ping ip 
Shell :: PowerShell script block 
Shell :: ubuntu 
Shell :: rm remote git 
Shell :: tar extract command windows 
Shell :: how to switch branches git 
Shell :: how to make ubuntu use all available disk 
Shell :: install pytorch in virtual environment 
Shell :: cat first line 
Shell :: sed replace with newline 
Shell :: error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fatal: unpack-objects failed 
Shell :: install solidity compiler command with version 
Shell :: angular 8 install agm 
Shell :: yarn install package 
Shell :: docker run -d 
Shell :: rickroll ssh 
Shell :: linux while one line command 
Shell :: installing ruby on rails ubuntu 20.04 
Shell :: how to install unijoy in linux 
Shell :: roundcube cannot connect to storage server 
Shell :: pyinstaller “failed to execute script” error with --noconsole option 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =