Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Git submission Summary

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Git submission Summary submitted for the first time

Tutorial reference: reproduced from http://www.testclass.net/git/git-commit-code

Summary:

1. Connect ssh: ssh-T git@github.com

two。 Initialize settings in the ~ / .ssh directory

Git config-- global user.name "your own user name on github" git config-- global user.email "your own mailbox bound on github" 3. Select a folder locally to create a new folder. The name of this folder must be the same as the repository name created on your GitHub

4. You can create a test file for testing

First git init, the purpose is to initialize the current directory, so that the current project-name directory to be managed by Git and then git status, to see the status of all files under the current project. Then git add., add a trace to the specified file. If it is followed by a space with a period, it means that all files in the current directory are tracked. Once again, use the git status command to view the information of the current Git repository. The git commit-m "first commit file" git commit command then submits the files (files managed by git add) to the local warehouse. The-m parameter describes this submission. A general description of a submission is essential to make it easier to trace what changes have been made to each submission. The preparation is complete, and the code is submitted to GitHubgit remote add origin git@github.com: your user name / your project address. Git is very important if it is the first time to submit the project, it will establish a connection between the local project and the remote warehouse. SSH protocol is chosen to connect here. This next step is different from the tutorial, because I report an error directly when I follow the tutorial, because there is no update, and there is no README.md in my local document.

Reference: https://blog.csdn.net/u013120247/article/details/53263169 corrected the error

First: git pull-- rebase origin master and then go: git push origin master

Now you can see the updated project by visiting GitHub.

Second submission

Tutorial reference: reproduced from https://blog.csdn.net/qq_41359808/article/details/88418582

Summary:

First add. There is no need to add quotation marks to git commit-m something. Finally, push

This is some additional knowledge points to find relevant information.

Data reproduced from https://blog.csdn.net/TTTTT2017/article/details/78564147

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report