Gitコマンドの覚書
http://www.backlog.jp/git-guide/intro/intro1_2.html
http://www.backlog.jp/git-guide/intro/intro1_3.html
http://www.backlog.jp/git-guide/stepup/stepup1_1.html
現在使用しているbranchの先頭を表す名前
ファイルの変更内容を一時的に記録しておく領域。
ファイルやディレクトリの追加・変更を、Repositoryに記録する
branchする
https://www.atlassian.com/ja/git/tutorial/git-branches#!branch
git branch <new-branch>
checkoutする。
https://www.atlassian.com/ja/git/tutorial/git-branches#!checkout
git checkout <existing-branch>
git checkout -b <new-branch>
git checkout -b <new-branch> <existing-branch>
branchの統合
git branch -d <experimental>
git branch -D <experimental>
git clone は既存の git repositoryのclone (コピー) を作成する
https://www.atlassian.com/ja/git/tutorial/git-basics#!clone
git clone <repo>
git clone <repo> <directory>
https://www.atlassian.com/ja/git/tutorial/remote-repositories#!remote
fetchする。
https://www.atlassian.com/ja/git/tutorial/remote-repositories#!fetch
git fetch <remote>
git fetch <remote> <branch>
pullする。
https://www.atlassian.com/ja/git/tutorial/remote-repositories#!pull
git pull <remote>
git pull --rebase <remote>
pushする。
https://www.atlassian.com/ja/git/tutorial/remote-repositories#!push
git push <remote> <branch>
git push <remote> --all
git push <remote> --tags
branchの確認
git branch
git branch -r
git branch -a
git branch -m <branch>
logの確認
変更のcommit
https://www.atlassian.com/ja/git/tutorial/git-basics#!commit
git commit
git commit -m "<message>"
commitのrevert
https://www.atlassian.com/ja/git/tutorial/undoing-changes#!revert
git revert <commitの"SHA-1 id">
https://www.atlassian.com/ja/git/tutorial/undoing-changes#!reset
https://www.atlassian.com/ja/git/tutorial/undoing-changes#!clean