Getting started with git committing code

git instructions

step1:

Create a folder "project1" locally, such as in the E drive

step2:

Right-click under the folder created in step1 to open "git Bash Here"

step3:

Enter the following command in the window opened in step2:

git clone [email protected]:Others/maying.git

Note: [email protected]:Others/maying.git is the address of the final location of the file to be uploaded

step4:

ls

Note: View the contents of the current folder

step5:

cd maying/

Note: maying/ is just an example here, referring to the name of the cloned folder

step6:

Put the file to be uploaded into the folder in step5

step7:

git add *
git commit -m "comment content"
git push -u origin master

write picture description here

complete

Guess you like

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