git init --bare myrepo.git
git clone ssh://repo@host.domain.com/home/repo/myrepo
git clone --bare ssh://repo@host.domain.com/home/repo/myrepo
- bareリポジトリのパーミッションをオーナーのみに制限
git init --bare --shared=0600 myrepo.git
git pull
git fetch
git add FILENAME
git add .
git checkout -- FILENAME
git commit -m 'for maintenace' FILENAM
git push origin master
git log FILENAME
git log --author=USERNAME FILENAME
git show COMMITHASH
git show COMMITHASH FILENAME
git config --list
git config --list --global
git config --global user.name USERNAME
git config --global user.email USERNAME@domain.com
git config --global push.default matching
git log -p -2
git diff FILENAM
git diff origin/master
git branch
git checkout -b topic_XXXX_YYYYMMDD
git branch -d topic_XXXX_YYYYMMDD
git status
git mv BEFORE_FILE AFTER_FILE
git rm FILENAME
git config core.filemode false
git update-index --chmod=+x FILENAME
git rm -r WORKDIR
- ディレクトリやファイルは残したままindexから削除
git rm -r --cached WORKDIR
git remote
git remote add HOST ssh://repo@host/home/repo/test.git
git remote rm HOST
git remote set-url ssh://repo@host/home/repo/git/test.git
git show --format='%H' -s
git stash save
git stash pop
git update-server-info