github - How to push a local git project to a remote repository?
怪我咯
怪我咯 2017-05-02 09:48:35
0
2
817

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!

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
伊谢尔伦

Maybe something went wrong during git pull? Run itgit branch -avvgit status and see what the result is

刘奇

Looking 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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template