SourceTree pull code Mac


When I am idle and bored, I want to create a project warehouse by myself to store the code. Here I use Gitee to create the warehouse.

project repository

Open the react warehouse created under Gitee
Click the clone download button to copy the HTTPS address
insert image description here

SourceTree operation

1. Create a local warehouse

Create a react folder locally
and drag it into sourcetree to create a local warehouse
insert image description here

2. Set the remote warehouse address

Open the local warehouse react in sourcetree, click Settings, enter
insert image description here
the remote warehouse name (used to write orgin)
and enter the HTTPS address just copied from the gitee project warehouse
insert image description here

3. Pull remote warehouse code

Click the grab button to get the code of the remote warehouse.
Click the pull button. After the grab is successful, you can see the content in the remote branch to be pulled (the default master here).
insert image description here
Click the branch to see the master branch. Select this branch You can see the initialization content
insert image description here
Go here and pull the project code on the gitee warehouse to complete.

problems encountered

Remote warehouse address Remote warehouse account password input error

After entering the address of the remote warehouse, pull the code and report an error. The error report
shows that the password of the user name is wrong.
Here we must be careful not to enter the wrong user name or password.
Ensure that the user name and password must be correct! ! ! (Wrong username and password will definitely be wrong. Don’t enter the wrong username like me and still see how to change the password. The solution is as follows: First,
find
other options in the computer application
insert image description here
Keychain access Open and insert image description here
you can find the entered account password by searching.
Here I use Gitee
to right-click to delete the keychain
insert image description here
, then open the upper left corner of sourcetree
and select Settings to open. Open the
insert image description here
settings and select Advanced in the arrow
. At this time, Advanced is gray and cannot be selected.
The main event is coming! ! ! ! !
See the language preference below, select English, and then restart sourcetree.
insert image description here
After re-opening sourcetree and finding that the language is English, select the setting again.
At this time, you can see the security in the last item
in the list below. You can also see the username of gitee.
insert image description here
Modify the username, and then Click the capture button again, and a pop-up box for entering the password will pop up, just enter the correct password.

Here I want to say that if the password is entered incorrectly, delete the keychain of the computer, and then grab it again, but if the user name is entered incorrectly, you must find the account list in the security of sourcetree to modify the user name.

Guess you like

Origin blog.csdn.net/iYNing/article/details/130888668