Git to submit code using basic operation flow of Github

Explanation

This blog is not used throughout the guide for beginners Git, but I can recommend an excellent blog post, I referenced entry: Here

This article is adapted to the basic configuration and do their own submitted a beginner, you can prevent forgetting the wrong command or process.

Let’s go!

First, we create a new code repository on Github, namely New Repository:
Here Insert Picture Description

Then complete the information.

Next, find a local library storage folder:
(This is my: D: / Github)
Here Insert Picture Description
right directly open the Git bash:
be clone, the establishment of local libraries:
Here Insert Picture Description
copy the URL in the new library's web page above:
Here Insert Picture Description
Enter the command:

git clone url

Note that the right to use the Paste paste, Git bash inside Ctrl + C / Ctrl + V so bad! !

After the completion of open Github folder, find a local library, documents to be submitted are copied into it.

Then retreated to the local library folder there, such as my library named hh, is D: / Github /, in which right-hh folder, open the Git bash again. (Of course, may be adjusted by the position it cd)

Then enter the following command in Git bash in turn:

git add .
git commit -m "你想说的"
git push -u origin master

Finally completed it! !

to sum up

But it is still quite simple here that is the basic operation, simply comb process.

Use your Git and Github it! !

Here Insert Picture Description

Published 353 original articles · won praise 612 · views 30000 +

Guess you like

Origin blog.csdn.net/weixin_43896318/article/details/104073562