本 Wiki 开启了 HTTPS。但由于同 IP 的 Blog 也开启了 HTTPS,因此本站必须要支持 SNI 的浏览器才能浏览。为了兼容一部分浏览器,本站保留了 HTTP 作为兼容。如果您的浏览器支持 SNI,请尽量通过 HTTPS 访问本站,谢谢!
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版后一修订版两侧同时换到之后的修订记录 | ||
software_dev:ver_ctrl:git [2023/12/13 01:51] – [误回滚回复] codinghare | software_dev:ver_ctrl:git [2023/12/13 02:07] – [相关命令] 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 clone== | ==git clone== | ||
行 259: | 行 262: | ||
# -u: push the new data and link the local branch to the cloud branch | # -u: push the new data and link the local branch to the cloud branch | ||
git push -u origin master | git push -u origin master | ||
+ | </ | ||
+ | ===Tips=== | ||
+ | ==误回滚回复== | ||
+ | 如果知道想回滚版本的 hash: | ||
+ | <code bash> | ||
+ | git reset --hard hash | ||
+ | </ | ||
+ | 如果不知道: | ||
+ | <code bash> | ||
+ | #find the hash | ||
+ | git reflog | ||
+ | #backtrack | ||
+ | git reset --hard hash | ||
+ | </ | ||
+ | ==将 master 上修复的 bug 同步合并到 dev 上== | ||
+ | 这种情况一般出现在: | ||
+ | * 你正在开发新的东西 | ||
+ | * 当前的 master 分支出现了 Bug 并被修复了 | ||
+ | 这种情况下,无需去 dev 分支上再把 bug 修改一遍,只需在 dev 分支上使用如下命令即可合并 Bug 修复内容到 dev: | ||
+ | <code bash> | ||
+ | git cherry-pick < | ||
</ | </ | ||
====Git Hub==== | ====Git Hub==== |