I have a git on the sever [URL] http://XXXXXXXXX
I have com开发者_Go百科mited in my PC, however, I don't know how update to the sever.
I want the command line.
first add your repository on the server as a remote with
git remote add origin http://XXXXXXXX/repo.git
where origin is the name for the repository on the server
then push to it with
git push origin master
where origin is the name of your previously added repository and master is the branch where you want to push to.
精彩评论