目次

概要

Gitコマンドの覚書

参考

リポジトリ

クローン

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

git clone <repo> <directory>

確認

ブランチ

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

リポジトリ間連携

git pull

pullする。

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

git pull <remote> <branch>

git push

pushする。

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

git push <remote> <branch>

git fetch

fetchする。

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

git fetch <remote> <branch>

用語

ブランチ

ブランチ名

= (remote)/(branch)

<remote>

branchの場所

ステージング


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