Instructions for use of Git upload files, modify files, view files

Today, the first day back to school, continue to learn Git, today I solved a problem, Git base here, where right-click, then the directory where the software will be. First look I right-click on the desktop, location is the C drive.

And yesterday I was in my F drive new repository right-click the software to open the path F disk.

                                                            

Well into the topic.

              First, create a new file, and upload it to the repository.

For example, create a new file lianxi.txt, we will pass it along to our new version of the library yesterday, because Git is a distributed version control system, you need to fill in as a user name and mailbox identification.

config user.name git " your name "

config user.email git " your email "

If you do not fill in two words, it would appear that the error mail: Please Tell Me the WHO are you? To upload files we need to first fill in on these two commands.

Now we use git add " file name (formatted) will be added to the staging area and to" file with git commit -m " file name (formatted)  will be submitted to the" File up. We are here to just the new lianxi.txt file as an example.

Well, we practice txt file is successfully uploaded into our repository.

                                Second, modify files, view files

We first content lianxi.txt text document and save just to add a few words. With git status is not submitted documents to check whether there

这是在提示我们修改之后的lianxi.txt文件还未被提交。

这时我们重复用 git add,和git commit -m 将修改之后的文件提交上去。

本人QQ:2992789432

我希望在这里可以和大家一起学习进步,如果我的文章有幸帮助到了您,记得点赞,关注我之后大家一起学习交流。      

             

发布了45 篇原创文章 · 获赞 96 · 访问量 1万+

Guess you like

Origin blog.csdn.net/qq_40831778/article/details/102365291