-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0a1928
commit c2506f8
Showing
2 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,37 @@ | |
Awesome Git | ||
=========== | ||
|
||
Best Pratice for Git | ||
==================== | ||
|
||
.. code-block:: bash | ||
git config --global core.editor vim | ||
git config --global user.name "hotchilipowder" | ||
git config --global user.email "[email protected]" | ||
账户设置 | ||
======== | ||
|
||
之前在Mac用多个账户,经常出现要么不能git clone私有项目(因为是另外一个账户),要么错误的用了账户到别的repo中,并且一直管理上比较麻烦。 | ||
|
||
有如下的方案: | ||
|
||
+ 方案1: 不配置global | ||
+ 方案2: 配置global, 默认使用hotchilipowder的账号。 | ||
|
||
|
||
方案1的版本中,需要按照如下的方式清除默认的 `credential.helper` 。 | ||
对于 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
My Github Issues | ||
================ | ||
|
||
|
@@ -22,7 +53,6 @@ Mac 上清除 git osxkeychain 保存的登录名密码 | |
git config --show-origin --get credential.helper | ||
How to change default editor into vim | ||
------------------------------------- | ||
|
||
|
@@ -33,7 +63,6 @@ How to change default editor into vim | |
git config --global core.editor vim | ||
Permission to x denied to github-actions[bot] | ||
--------------------------------------------- | ||
|
||
|