How to perform a git push operation

                          How to perform a git push operation

Foreword: Since I'm developing a small program with my friends recently (I haven't learned security for a long time, I'm all looking at things about small programs, because I have no development experience, everything is learned from scratch +_+, but after learning the front-end and back-end, it is actually It helps us to dig holes and XSS, haha, at least I understand it. Git is a very important tool in assisting development, so here are some simple operations about git push.

(1) Git clone ssh://[email protected]:10100/WeApp.git //Here is the address of the git server

 

(2) After the above operation, this will appear

(3) Here we only need to fill in the password (some git servers set password authentication and some do not)

(4) After one of the above, we will find that the current folder appears below

 

(5) At this time we need to enter WeApp and open git bash

(6) After entering WeApp, we need to put the files to be uploaded under the corresponding files (for example, the file I need to upload is the source code of the WeChat applet, so I put it in the client directory)

 

 

(7) At this time, there are changes to the file, so the following commands are used

git add . //Because the file has changed, we need to track the file change. Don't forget the point after add

git commit -m "Test" //This is equivalent to a comment telling others who did what

git push -u origin master //After the above operations, we will finally use this command to upload local files to the git server

 

 

 

(8) Finally, on the git server page, we can see that our upload was successful

 

 

 

Afterword: Pay special attention to the fact that if the administrator of the git server does not authorize you, it is very likely that the upload will be successful. In this case, you need to contact the administrator for authorization.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324814526&siteId=291194637