There has been a project source code on how to push it to a remote server

--- --- restore content begins

1. First, create a repository on a remote server


2. Create a folder to store the source code for the project locally,


3. Open the git bash git init command execution environment


4. Use git rmote add origin + ssh address items such as: git remote add origin [email protected]: pongxshop / admin-fe.git
local repository corresponding to the folder to the remote server


5. Copy the code to be submitted to the current folder
6. Use git add. And git commit -am "init product" will be submitted to the local codes


7. Push code to a remote server: git push


8. This time he will display an error:
fatal:. Current Branch at The Master has NO upstream Branch
the To the Push at The Current Branch and the SET at The Remote AS upstream, use

the Push --set-upstream Origin git Master
9. Order execution: git push --set-upstream origin master to

 10. At this point we put the code to publish it online!

Guess you like

Origin www.cnblogs.com/pongx/p/11756442.html