Article From:https://www.cnblogs.com/djcao/p/9022968.html

1. A local project in a new warehouse in GitHub
——-
1.Create a warehouse at GitHub.
2.Input in the Terminal window of the project folder:
1.git init
2.git commit -m ‘first’
3.git add remote orgin The GIT address of the project
4.git pull
5.git pull orgin master
6.git pull orgin master –allow-unrelated-histories
6.git push
3.Be accomplished
———-
Two, daily pull and push commands
1.The first step is to see if the branch is the branch that you want to push.
2.git status
3.git add .
4.git commit -m ‘commit’
5.git push
Reminder: keep the latest version. Not the latest version. Push. can not be pull first and then merge.

Link of this Article: git

Leave a Reply

Your email address will not be published. Required fields are marked *