Skip to content

Commit

Permalink
docs: add git pratices
Browse files Browse the repository at this point in the history
  • Loading branch information
hotchilipowder committed Feb 9, 2025
1 parent a0a1928 commit c2506f8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docs/rsts/cookiecutter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ Why Cookiecutter
所以最后我选择的方案是使用 [Cookiecutter]_ 。


My Cookiecutters
================

`Docs-cookiecutter <https://github.com/hotchilipowder/docs-cookiecutter>`_
----------------------------------------------------------------------------

这个项目主要是希望能快速的生成一个可以开发使用的文档。



References
==========

Expand Down
33 changes: 31 additions & 2 deletions docs/rsts/git.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
================

Expand All @@ -22,7 +53,6 @@ Mac 上清除 git osxkeychain 保存的登录名密码
git config --show-origin --get credential.helper
How to change default editor into vim
-------------------------------------

Expand All @@ -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]
---------------------------------------------

Expand Down

0 comments on commit c2506f8

Please sign in to comment.