File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ git config --global core.quotePath false
88
99示例:
1010
11- ![ git-status乱码-1639887120rGTyu1GBhT] ( https://ituknown.cn /git-media/中文乱码/git-status乱码-1639887120rGTyu1GBhT.png )
11+ ![ git-status乱码-1639887120rGTyu1GBhT] ( https://ituknown.org /git-media/中文乱码/git-status乱码-1639887120rGTyu1GBhT.png )
1212
1313# Commit/Log 乱码
1414
Original file line number Diff line number Diff line change 11Mac 升级之后,发现 git 命令行变成中文了:
22
33<div style =" text-align : left ;" >
4- <img src =" https://ituknown.cn /git-media/LANG/git-status-chinese.png " alt =" git-status-chinese.png " width =" 500 " />
4+ <img src =" https://ituknown.org /git-media/LANG/git-status-chinese.png " alt =" git-status-chinese.png " width =" 500 " />
55</div >
66
77显得好low......
@@ -23,5 +23,5 @@ alias git='LANG=en_GB.UTF-8 git'
2323然后将这条 alias 写到配置文件即可,效果如下:
2424
2525<div style =" text-align : left ;" >
26- <img src =" https://ituknown.cn /git-media/LANG/git-status-english.png " alt =" git-status-english.png " width =" 500 " />
26+ <img src =" https://ituknown.org /git-media/LANG/git-status-english.png " alt =" git-status-english.png " width =" 500 " />
2727</div >
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ option 就是执行 reset 的选项,稍后说。其后跟的是版本号,比
6969
7070示例(红色框标记的就是 commit_id):
7171
72- ![ git-log-1644677941cU4sE0] ( https://ituknown.cn /git-media/BranchManager/git-log-1644677941cU4sE0.png )
72+ ![ git-log-1644677941cU4sE0] ( https://ituknown.org /git-media/BranchManager/git-log-1644677941cU4sE0.png )
7373
7474** 所以,对于已经 commit(或执行 Merge 后生成一个 commit)的操作,我们只需要将版本回退到 commit 之前的一个版本即可。**
7575
@@ -169,7 +169,7 @@ HEAD is now at 55cf413 Initial commit
169169
170170如下:
171171
172- ![ git-log-rollbackid-1644677934gU3mB2] ( https://ituknown.cn /git-media/BranchManager/git-log-rollbackid-1644677934gU3mB2.png )
172+ ![ git-log-rollbackid-1644677934gU3mB2] ( https://ituknown.org /git-media/BranchManager/git-log-rollbackid-1644677934gU3mB2.png )
173173
174174这里我要将版本回退到 “Fix trailing space” 这个版本,对应的提交记录是:83ebc604fb2e94461e2c2c597545c59cb1705cbc。
175175
@@ -223,7 +223,7 @@ Already up-to-date.
223223
224224即先将你要强制 push 的分支取消受保护,但是 ** 强推成功后一定要重新添加为受保护的分支** !!
225225
226- ![ git-branch-unprotect-1644677911eJ6cF0] ( https://ituknown.cn /git-media/BranchManager/git-branch-unprotect-1644677911eJ6cF0.png )
226+ ![ git-branch-unprotect-1644677911eJ6cF0] ( https://ituknown.org /git-media/BranchManager/git-branch-unprotect-1644677911eJ6cF0.png )
227227
228228
229229# 总结
You can’t perform that action at this time.
0 commit comments