Git usage guide

The following is a summary of the use of the work process, easy to find.

1. Configuration without entering user name and password

  In the actual development and application, updating or submitting code is very common. You need to enter the user name and password every time, and it is easy to enter wrong and the experience is extremely poor. What if such a step is omitted in the configuration?

This article is under window7, the Git version is: 2.6.1

In the directory C:\Users\angie (machine login user)\

(1) Create a new file _netrc, and fill in the following content in it:

machine source.***.com
login xxx
password ******

where source.***.com is the domain name of the source code management, xxx is the user name, ****** is the password

(2) Create a new .gitconfig file and fill in the following content in it :
[user]
name = angie

email = [email protected]

[credential]
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f required
= true

login verification.

2 Pull the source code managed by GIT

$ git clone http://source.xxx.com/app/yyy.git

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327011007&siteId=291194637