开发者

How to upload commit (modified) data to the sever

开发者 https://www.devze.com 2023-04-10 10:57 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消