There is a project locally. I first git init to initialize the library, and then git add.
git commit -m"test"
Configuration association
git remote add origin git@github.com:myName/test .git
Execution Upload to the good library I have created on github,
The command reports an error, failed to push some refs to git@github.com:myName/test.git
After Baidu, it said that I need to bring the README.md file. I created this file locally, but still get an error?
What’s your reason?
After using git pull --rebase origin master, many characters will be inserted into the code. . . . .
How do you deal with this problem? . .
Execute git pull origin master
Reason
1. The server warehouse is not clean when it is created, so you need to drag it down from the server first
Solution
1.
//If you built the readme yourself, you may be asked to merge it, please merge it manually
It means that the branch you submitted is still behind the online branch, which means that the local and online versions are not unified
Let me tell you the solution
Don’t
git init
You should first
git clone
the remote warehouseand then Perform the following operations.
The answer has been given in the prompt,