Git downloads and connects to remote warehouses

 Come to a quick installation first, click to enter and choose the version you want

 CNPM Binaries Mirror (npmmirror.com)

 Looking at your own situation, I am Windows 64-bit, so I choose the picture below, and then the installation is very simple. Click next (next step), this will automatically configure the global variables for you, so you don’t need to manually configure it yourself

After the installation is complete, right-click on any folder as follows and configure a user and mailbox first, such as

git config --global user.name "chuyao"

git config --global user.email "[email protected]"

After this step is completed, you can find .gitconfig under your C:\Users\asus,

Open the information that can be opened to the configuration just completed

 The next step is to use the code cloud. I use gitee, register and log in. If it is troublesome to upload later, you can configure a secret key first.

Click Personal Settings, SSH Public Key

 Now create a .ssh folder under your user and click in, right click to open Git Bash Here enter

ssh-keygen -t rsa

Then open id_rsa.pub in .ssh , copy the contents into the picture box below to confirm, and then enter your gitee login password

Then create a library as follows

 I am java so as follows

 After the library is created, clone the library and connect it locally, first copy the link of the library

 Then open git bers here in a folder and enter

git clone the link you copied

Note: paste is paste. This folder is to put your project, so just create it in a place you can remember.

Complete the comparison between the gitee library and the files in your folder, and it will be successful if they are the same. ( Remember to open hidden files )

Next, we create a project in the previous file, and then copy and paste all the previous files into the project you created, as shown below

 Then open your idea interface and click this or enter in the console

git add.   First add all and then submit git commit - m "commit information"    and finally upload the remote creation library git push

 In this way, the remote warehouse is successfully uploaded and viewed as follows

 OK succeeded

If there are many people together, it is recommended to use the branch operation, and the git branch will be improved next time.

Guess you like

Origin blog.csdn.net/weixin_53810346/article/details/124503675