What & How & Why

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
后一修订版两侧同时换到之后的修订记录
software_dev:ver_ctrl:git [2023/12/13 01:54] – [git push] codingharesoftware_dev:ver_ctrl:git [2023/12/13 02:06] – [相关命令] 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
 </code> </code>
 ==git clone== ==git clone==
行 261: 行 264:
 </code> </code>
 ===Tips=== ===Tips===
 +==误回滚回复==
 +如果知道想回滚版本的 hash:
 +<code bash>
 +git reset --hard hash
 +</code>
 +如果不知道:
 +<code bash>
 +#find the hash
 +git reflog
 +#backtrack
 +git reset --hard hash
 +</code>
 ==将 master 上修复的 bug 同步合并到 dev 上== ==将 master 上修复的 bug 同步合并到 dev 上==
 这种情况一般出现在: 这种情况一般出现在: