In the Ubuntu system, many users report that when using Git, they often encounter the need to enter passwords frequently. They are required to enter the password each time they submit the code. After entering the correct password, they can log in normally. Use git. Many users feel that it is very troublesome to enter a password every time they submit. So, what should I do to enter a password every time git submits in Ubuntu system? How to avoid it?
Buju following operations:
1: cd carriage; user enters the current directory;
2: vim .git-credentials (if not installed vim You can also install one with sudo apt-get install vim using other editors)
3: Enter the content in the following format:
https://{username}:{password}@github. Com
where username, password, and github.com are replaced with your own content
4: Save the exit and execute the following command
git config --global credential.helper Store
After executing
/home/username/.gitconfig will add a new
helper = store
This is to execute git push again /pull will not ask you to enter a password.
Of course, there is another way to use git@git (ssh) instead of https://in git clone. This way you can also avoid losing your password every time.
Finally, if you are on the Mac os x or Uindows platform, you can also use the ide tool like sourcetree, but now you have to FQ to download.
The above is the solution for git to enter the password every time the git is submitted in Ubuntu system. Users who need it can refer to the method described above to avoid the trouble of git entering the password every time it is submitted.
In order to protect the security of computer data, you need to periodically back up
Many users in the Linux system are exposed to shorter commands, and hadoop dfs commands are more dif
Linux disk management is mainly implemented by commands. Today, Xiaobian will sort out the commands
In Linux systems, multiple network cards are usually bundled into one logical netwo
How to configure XFS file system for Linux system
Git Workflow and Basic Operations in Linux
Linux system CentOS 7 to build a high-availability cluster method
What should I do if the Linux system Openvpn process exits abnormally?
Linux SVN tool command summary
How does Linux add a virtual network card?
Tips for removing the player from the Ubuntu sound menu
How to fix the program error prompted by Ubuntu system?
Linux uses node.js to execute commands.
VMware clone Linux prompt eth0 can not find what to do?
Ubuntu method to install JDK environment variables Ubuntu configuration JDK steps
How Linux uses shell scripts to defend against small amounts of ddos attacks
Win10/wp developers can apply for free subscription to Xamarin tools. End of August 31
Solve the problem that the U disk file becomes garbled and cannot be deleted.
Win10 how to cancel the update patch after the pop-up window
Win7 system login QQ prompt error code 0X00000001 solution
Introduction of 4 functions of keyboard ESC key in Win7 system
How to open Win7 system settings backup plan function?
Windows 8 system shortcut key hotkey list collection Daquan summary
Resolve QQ under Win7 message PPS cool dog player sound becomes smaller When
How to open the calculator of Win10 system? Where is the calculator path