$ cd /path/to/your/working/directory $ git init
$ vi newfile $ git add newfile $ git mv srcfile dstfile $ git rm oldfile $ git commit -m "comment" $ git log $ git log --oneline
$ cd /path/to/your/working/directory $ git clone https://github.com/名前/リポジトリ.git $ git status
push権限が必要
$ git push $ git push origin master
$ git fetch $ git diff FETCH_HEAD $ git merge FETCH_HEAD $ git pull $ git rebase FETCH_HEAD
$ git branch $ git branch -a $ git checkout -b newbranch (変更) (コミット) $ git push -u origin newbranch (初回のみ)
$ git merge newbranch $ git branch -d ブランチ $ git push origin :newbranch
$ git remote prune origin $ git branch -D newbranch $ git remote show $ git remote show origin
最終更新日:2015/08/29