本 Wiki 开启了 HTTPS。但由于同 IP 的 Blog 也开启了 HTTPS,因此本站必须要支持 SNI 的浏览器才能浏览。为了兼容一部分浏览器,本站保留了 HTTP 作为兼容。如果您的浏览器支持 SNI,请尽量通过 HTTPS 访问本站,谢谢!
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版后一修订版两侧同时换到之后的修订记录 | ||
software_dev:ver_ctrl:git [2023/12/13 01:54] – [将 master 上修复的 bug 同步合并到 dev 上] codinghare | software_dev:ver_ctrl:git [2023/12/13 02:59] – [相关命令] codinghare | ||
---|---|---|---|
行 236: | 行 236: | ||
#push your branch feature to the remote | #push your branch feature to the remote | ||
git push origin your_branch_name | git push origin your_branch_name | ||
+ | |||
+ | #fetch and merge the newest master | ||
+ | git pull origin master | ||
+ | </ | ||
+ | ==git rebase== | ||
+ | 我们在 push 的时候,如果 origin 对应分支已经发生了改变(别人提交过了),那么需要用 fetch/merge 或是 pull 来同步 origin 中的新内容到本地分支。但这样做的问题在于,我们在本地的 commits 实际上处于 pull commit 之后了,那么从路径上来说我们的 commit 之于 master 的新内容之前。这样顺序是不对的。 | ||
+ | \\ \\ | ||
+ | '' | ||
+ | <code bash> | ||
+ | # before | ||
+ | |\ | ||
+ | | * d662d56 (origin/ | ||
+ | * | 30bcffe modified hello2.py | ||
+ | * | 9091cc7 add hello2.py | ||
+ | |/ | ||
+ | |||
+ | # after | ||
+ | |||
+ | * 280680e (HEAD -> master) modified hello2.py | ||
+ | * 8337019 add hello2.py | ||
+ | * d662d56 (origin/ | ||
+ | |||
</ | </ | ||
==git clone== | ==git clone== |