449c67eab64f95688c2e1d01817a3f81029aa6bf
Git.md
| ... | ... | @@ -7,16 +7,27 @@ |
| 7 | 7 | - git パッケージのインストール<br />
|
| 8 | 8 | 「user1」は ssh でログインできるユーザ。
|
| 9 | 9 | ```
|
| 10 | -# yum install git
|
|
| 11 | -# su user1
|
|
| 12 | -$ git config --global user.name "Your Name"
|
|
| 13 | -$ git config --global user.email you@example.com
|
|
| 14 | -$ git config --global core.autocrlf false
|
|
| 15 | -$ git config --global core.quotepath false
|
|
| 16 | -$ git config --global core.pager "LESSCHARSET=utf-8 less"
|
|
| 17 | -$ git config --global fetch.prune true
|
|
| 18 | -$ git config --global remote.origin.prune true
|
|
| 19 | -$ git config --global push.default simple
|
|
| 10 | +# dnf install -y git
|
|
| 11 | +```
|
|
| 12 | +- ~/.gitconfig
|
|
| 13 | +```gitconfig
|
|
| 14 | +[user]
|
|
| 15 | + name = {Your Name}
|
|
| 16 | + email = {yourmail@example.com}
|
|
| 17 | +[core]
|
|
| 18 | + autocrlf = false
|
|
| 19 | + pager = LESSCHARSET=utf-8 less
|
|
| 20 | + quotepath = false
|
|
| 21 | +[credential]
|
|
| 22 | + helper = cache
|
|
| 23 | +[push]
|
|
| 24 | + default = simple
|
|
| 25 | +[pull]
|
|
| 26 | + rebase = false
|
|
| 27 | +[fetch]
|
|
| 28 | + prune = true
|
|
| 29 | +[remote "origin"]
|
|
| 30 | + prune = true
|
|
| 20 | 31 | ```
|
| 21 | 32 | |
| 22 | 33 | # 共有リポジトリ
|