#author("2019-08-11T14:11:01+09:00","default:Miyashita","Miyashita")
#author("2021-02-05T12:36:25+09:00","default:Miyashita","Miyashita")
*Gitのインストールと初期設定 [#i10acd91]
以下の処理はリポジトリとは関係なく,terminalのどの場所で行っても問題ない.
**インストール [#ze4ea98d]
***ソースからビルド [#z7ee0d77]
Ubuntuの場合は[[Gitのインストール>Ubuntu/Install_Git]]に記載.

***バイナリで [#t16c643d]
最新バージョンを求めないのであれば,apt install でも可.
#codeprettify{{
sudo apt install git
}}

**初期設定 [#cbd7c205]
#codeprettify{{
git config --global user.name "Name hoge"
git config --global user.email "hoge@example.com"
git config --global color.ui auto        #出力の色の指定(autoに)
git config --global core.quotepath false #日本語名のついたファイルの文字化けを防止
git config --global core.editor vim      #commitするときのコメントを好きなエディタで
git config --global push.default matching
}}
上記の設定は,以下の2つのどちらかを行うことで確認できる.
#codeprettify{{
git config --global --list
}}
#codeprettify{{
git config -l
}}

**その他 [#f9100066]
よく使う長めのコマンドは bashrc でエイリアスにでもしておいた方が良い.~
#codeprettify{{
git diff HEAD --name-only
}}
#codeprettify{{
git log -n 10 --oneline -decorate --all
}}
などは alias xx='command' としておくと楽.

Front page   Edit Diff Attach Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes