初期設定

$ git config --global user.name garaemon
$ git config --global user.email garaemon@hoge.com

globalな設定は$HOME/.gitconfigに追加されるらしい

レポジトリの作成

$ mkdir hoge_proj
$ cd hoge_proj
$ git init

チェックアウト

$ git clone  git://git.sourceforge.jp/gitroot/test/test.git

commit

$ git commit -m "committing!!"

ファイルの追加

$ git add hoge.l
$ git commit -m "add hoge.l"

ローカルのレポジトリからマスターへcommit

$ git push hoge@git.sourceforge.jp:/gitroot/test/test.git

マスターの変更を反映

$ git pull hoge@git.sourceforge.jp:/gitroot/test/test

参考

tips/git.txt · 最終更新: 2009/04/23 23:46 by garaemon
CC Attribution-Noncommercial-Share Alike 3.0 Unported www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0