ログイン
編集不可のページディスカッション情報添付ファイル

2012-09-04 22:24:53時点のリビジョン1

メッセージを消す
alstamber/git

MMA

なにこれ

gitを運用する上での知識の整理。

initial settings

git config --global user.name "<username>"
git config --global user.email "<mail address>"

create

create new repository

git init

create new public repository

git --bare init

clone

clone local repository

git clone /path/to/repository

clone remote repository

git clone username@host:/path/to/repository

check

check status

git status

check repository log

git log

add/remove

add files

git add <filename>

git add *

remove files

git rm <filename>

commit

commit

git commit -m <message>

push/pull

add remote repository

git remote add <name> <url>

git remote add origin <remote repository url>

push

git push <repository> <branch>...

pull

git pull <repository> <branch>