88171.net

俺的Gitの使い方

メモメモ。

~$ cd /some/where
/some/where$ mkdir test.git
/some/where$ cd test.git
/some/where/test.git$ echo 'test repository' > description
/some/where/test.git$ git init --bare
Initialized empty Git repository in /some/where/test.git/
/some/where/test.git$ cd /else/where
/else/where$ git clone /some/where/test.git
Initialized empty Git repository in /else/where/test/.git/
warning: remote HEAD refers to nonexistent ref, unable to checkout.

/else/where$ cd test
/else/where/test$ echo 'Hello' > README
/else/where/test$ git add README
/else/where/test$ git status
/else/where/test$ git commit
/else/where/test$ git push origin master