github submits a new local project twice

In this article, the ssh key has been connected, and in terms of submitting a new project

1. Submission steps for new project local files

1. Go to the project folder

cd star

2. Remove the previous master branch

git remote rm origin

3.git initialization

git init

4. Create a remote project

Operation on github

5. Add branches

 git remote add origin [email protected]:xiaoge2017/star.git

6. Add files

git add .

7. Submit for indexing

git commit -m 'first'

8. Push to github

 git push -u origin master

Refresh the github homepage and the content will appear

 

2. Pull the project down from git

 

Guess you like

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