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
現在使用しているブランチの先頭を表す名前
ファイルの変更内容を一時的に記録しておく領域。
ファイルやディレクトリの追加・変更を、リポジトリに記録する
https://www.atlassian.com/ja/git/tutorial/git-basics#!clone
git clone <repo> <directory>
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
ブランチの確認
git branch -a
logの確認
変更のcommit
https://www.atlassian.com/ja/git/tutorial/git-basics#!commit
commitのリバート
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