From dcd199685df51c47c3b9a3c5ac70fb2815c608ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E6=B5=AA=E7=86=8A=E7=8C=AB=E5=84=BF?= Date: Tue, 21 Jun 2022 23:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=88=E6=B5=AA=E7=86=8A=E7=8C=AB=E5=84=BF?= =?UTF-8?q?=EF=BC=9AGit=E6=96=B0=E7=94=A8=E6=88=B7=E5=B8=B8=E7=94=A8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 沈浪熊猫儿/Git新用户常用配置.tm | 192 ++++++++++++++++++++ 沈浪熊猫儿/index.tm | 10 +- 2 files changed, 200 insertions(+), 2 deletions(-) create mode 100644 沈浪熊猫儿/Git新用户常用配置.tm diff --git a/沈浪熊猫儿/Git新用户常用配置.tm b/沈浪熊猫儿/Git新用户常用配置.tm new file mode 100644 index 0000000..66b5e77 --- /dev/null +++ b/沈浪熊猫儿/Git新用户常用配置.tm @@ -0,0 +1,192 @@ + + +> + +<\body> + \<#7528\>\<#6237\>\<#5E38\>\<#7528\>\<#914D\>\<#7F6E\>>|\<#6D6A\>\<#718A\>\<#732B\>\<#513F\>>>>> + + <\table-of-contents|toc> + \<#7F6E\>\<#5E38\>\<#7528\>\<#522B\>\<#540D\>\<#FF0C\>\<#53EF\>\<#4EE5\>\<#51CF\>\<#5C11\>\<#624B\>\<#6307\>\<#7684\>\<#78E8\>\<#635F\> + |.>>>>|> + > + + \<#4F55\>\<#6B63\>\<#5E38\>\<#663E\>\<#793A\>\<#4E2D\>\<#6587\> + |.>>>>|> + > + + \<#7F6E\>\<#7528\>\<#6237\>\<#540D\>\<#548C\>\<#90AE\>\<#7BB1\> + |.>>>>|> + > + + + \<#672C\>\<#6587\>\<#5728\>macOS 12.2.1\<#4E2D\>\<#64B0\>\<#5199\>\<#3002\> + + <\session|shell|default> + <\unfolded-io|Shell] > + git --version + <|unfolded-io> + git version 2.30.1 (Apple Git-130) + + + <\input|Shell] > + \; + + + + \<#7F6E\>\<#5E38\>\<#7528\>\<#522B\>\<#540D\>\<#FF0C\>\<#53EF\>\<#4EE5\>\<#51CF\>\<#5C11\>\<#624B\>\<#6307\>\<#7684\>\<#78E8\>\<#635F\>> + + <\session|shell|default> + <\input|Shell] > + git config --global alias.co checkout + + + <\input|Shell] > + git config --global alias.ci commit + + + <\input|Shell] > + git config --global alias.br branch + + + <\input|Shell] > + git config --global alias.st status + + + <\input|Shell] > + \; + + + + \<#4F55\>\<#6B63\>\<#5E38\>\<#663E\>\<#793A\>\<#4E2D\>\<#6587\>> + + \<#9ED8\>\<#8BA4\>\<#60C5\>\<#51B5\>\<#4E0B\>\<#FF0C\>\<#65E0\>\<#6CD5\>\<#663E\>\<#793A\>\<#4E2D\>\<#6587\>\<#FF08\>\<#4EE5\>\<#6B63\>\<#5728\>\<#64B0\>\<#5199\>\<#4E2D\>\<#7684\>\<#672C\>\<#6587\>\<#4E3A\>\<#4F8B\>\<#FF09\>\<#FF1A\> + + <\session|shell|default> + <\unfolded-io|Shell] > + cd ~/planet && git status # \<#4EC5\>\<#7528\>\<#4E8E\>\<#5C55\>\<#793A\>\<#6548\>\<#679C\>\<#FF0C\>\<#4E0D\>\<#5F71\>\<#54CD\>Git\<#914D\>\<#7F6E\> + <|unfolded-io> + On branch da/git_intro + + Untracked files: + + \ \ (use "git add \file\..." to include in what will be + committed) + + \ \ \ \ \ \ \ \ [31m"\\346\\262\\210\\346\\265\\252\\347\\206\\212\\347\\214\\253\\345\\204\\277/Git\\345\\205\\245\\351\\227\\250.tm"[m + + \; + + nothing added to commit but untracked files present (use "git add" to + track) + + + <\input|Shell] > + \; + + + + \<#901A\>\<#8FC7\>\<#914D\>\<#7F6E\>\<#53EF\>\<#4EE5\>\<#89E3\>\<#51B3\>\<#8FD9\>\<#4E2A\>\<#95EE\>\<#9898\>\<#FF1A\> + + <\session|shell|default> + <\input|Shell] > + git config --global core.quotepath false + + + <\unfolded-io|Shell] > + cd ~/planet && git status # \<#4EC5\>\<#7528\>\<#4E8E\>\<#5C55\>\<#793A\>\<#6548\>\<#679C\>\<#FF0C\>\<#4E0D\>\<#5F71\>\<#54CD\>Git\<#914D\>\<#7F6E\> + <|unfolded-io> + On branch da/git_intro + + Untracked files: + + \ \ (use "git add \file\..." to include in what will be + committed) + + \ \ \ \ \ \ \ \ \<#6C88\>\<#6D6A\>\<#718A\>\<#732B\>\<#513F\>/Git\<#5165\>\<#95E8\>.tm + + \; + + nothing added to commit but untracked files present (use "git add" to + track) + + + <\input|Shell] > + \; + + + + \<#7F6E\>\<#7528\>\<#6237\>\<#540D\>\<#548C\>\<#90AE\>\<#7BB1\>> + + <\warning*> + \<#8BF7\>\<#4F7F\>\<#7528\>\<#4F60\>\<#81EA\>\<#5DF1\>\<#7684\>\<#7528\>\<#6237\>\<#540D\>\<#548C\>\<#90AE\>\<#7BB1\> + + + <\session|shell|default> + <\input|Shell] > + git config --global user.name "\<#6C88\>\<#6D6A\>\<#718A\>\<#732B\>\<#513F\>" + + + <\input|Shell] > + git config --global user.email "shenda@ustc.edu" + + + <\unfolded-io|Shell] > + cat ~/.gitconfig + <|unfolded-io> + [alias] + + \ \ \ \ \ \ \ \ co = checkout + + \ \ \ \ \ \ \ \ ci = commit + + \ \ \ \ \ \ \ \ br = branch + + [core] + + \ \ \ \ \ \ \ \ quotepath = false + + [user] + + \ \ \ \ \ \ \ \ name = \<#6C88\>\<#6D6A\>\<#718A\>\<#732B\>\<#513F\> + + \ \ \ \ \ \ \ \ email = shenda@ustc.edu + + + <\input|Shell] > + \; + + + + +<\initial> + <\collection> + + + + +<\references> + <\collection> + > + > + > + + + +<\auxiliary> + <\collection> + <\associate|toc> + |\<#914D\>\<#7F6E\>\<#5E38\>\<#7528\>\<#522B\>\<#540D\>\<#FF0C\>\<#53EF\>\<#4EE5\>\<#51CF\>\<#5C11\>\<#624B\>\<#6307\>\<#7684\>\<#78E8\>\<#635F\> + |.>>>>|> + > + + |\<#5982\>\<#4F55\>\<#6B63\>\<#5E38\>\<#663E\>\<#793A\>\<#4E2D\>\<#6587\> + |.>>>>|> + > + + |\<#914D\>\<#7F6E\>\<#7528\>\<#6237\>\<#540D\>\<#548C\>\<#90AE\>\<#7BB1\> + |.>>>>|> + > + + + \ No newline at end of file diff --git a/沈浪熊猫儿/index.tm b/沈浪熊猫儿/index.tm index 4bcbbdf..f525423 100644 --- a/沈浪熊猫儿/index.tm +++ b/沈浪熊猫儿/index.tm @@ -1,4 +1,4 @@ - + > @@ -28,6 +28,8 @@ \<#7AE0\>\<#5217\>\<#8868\>> <\itemize> + \<#7528\>\<#6237\>\<#5E38\>\<#7528\>\<#914D\>\<#7F6E\>> + \<#6D59\>\<#6C5F\>\<#9AD8\>\<#8003\>\<#6570\>\<#5B66\>\<#7B2C\>\<#4E03\>\<#9898\>\<#51FD\>\<#6570\>\<#66F2\>\<#7EBF\>\<#7ED8\>\<#5236\>> \<#4F55\>\<#8F93\>\<#5165\>\<#5E0C\>\<#814A\>\<#5B57\>\<#6BCD\>> @@ -56,9 +58,13 @@ <\auxiliary> <\collection> <\associate|toc> - |math-font-series||\<#6587\>\<#7AE0\>\<#5217\>\<#8868\>> + |math-font-series||\<#300A\>\<#58A8\>\<#5E72\>\<#7F16\>\<#8F91\>\<#5668\>\<#300B\>> |.>>>>|> + + |math-font-series||\<#6587\>\<#7AE0\>\<#5217\>\<#8868\>> + |.>>>>|> + \ No newline at end of file