目次

概要

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

ブランチ名

HEAD

現在使用しているブランチの先頭を表す名前

stash

ファイルの変更内容を一時的に記録しておく領域。

コミット

ファイルやディレクトリの追加・変更を、リポジトリに記録する

ステージング

ブランチ

ブランチの切り替え

ブランチの統合

リポジトリ

クローン

https://www.atlassian.com/ja/git/tutorial/git-basics#!clone

git clone <repo> <directory>

リポジトリ間

git fetch

fetchする。

https://www.atlassian.com/ja/git/tutorial/remote-repositories#!fetch

git pull

pullする。

https://www.atlassian.com/ja/git/tutorial/remote-repositories#!pull

git push

pushする。

https://www.atlassian.com/ja/git/tutorial/remote-repositories#!push

確認

ブランチ

git branch

ブランチの確認

ログ

git log

logの確認

commitの操作

git commit

変更のcommit

https://www.atlassian.com/ja/git/tutorial/git-basics#!commit

git revert

commitのリバート

https://www.atlassian.com/ja/git/tutorial/undoing-changes#!revert

ステージング

git reset

https://www.atlassian.com/ja/git/tutorial/undoing-changes#!reset

git clean

https://www.atlassian.com/ja/git/tutorial/undoing-changes#!clean


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS