Zhonghui

每个不曾起舞的日子,都是对生命的辜负

User Tools

Site Tools


软件:git:push

git push


# 1) 推送并在远端创建同名分支(最常用)
git push -u origin <branch-name>
 
# 2) 本地分支名和远端分支名不同
# -u(--set-upstream)会把当前本地分支绑定到远端分支
git push -u origin <local-branch>:<remote-branch>
 
# 3) 已经设置过上游(upstream)之后,直接推送当前分支
git push
/var/www/DokuWikiStick/dokuwiki/data/pages/软件/git/push.txt · Last modified: 2025/12/16 22:08 by zhonghui