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

2012-09-04 22:46:33時点のリビジョン2

メッセージを消す
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>

branch

masterとtopic branch

stash

merge

rebase

A successful git branching model

create branch

git branch <branchname>

list branch

git branch

checkout branch

git checkout <branch>

merge branch

git merge <commit>

delete branch

git branch -d <branchname>

correct conflict

rebase branch

git rebase <branch>

git rebase --continue