For my local project, follow the steps
git init
git add .
git commit -m
git remote add origin [remote warehouse]
git pull
Finally git Push origin master, why does it report an error? Can you tell me how to connect the local project to the remote warehouse according to the normal steps? Thanks!
Maybe something went wrong during git pull? Run it
git branch -avv
和git status
and see what the result isLooking at https://github.com/Shen-Yu, there are so many projects here that don’t look like beginners... So I guess it is not the github account of the subject.
I saw that you used pull, which means that if this is not your library and the other party has not authorized you, you do not have permission. You should use it
git clone <url>
. I will give you a reference by the way.Added a practical cheat sheet of commonly used Git commands, adopt it if it is useful.