memo
未分類のメモはここに置く。
git
getting started
REMOTE *BARE* TREE
mkdir gittest.git ; git --bare init ; # initialize BARE repo.
the 1st. WORK TREE
mkdir gittest ; cd gittest/ ; # initialize MASTER repo. git init ; echo 'TEST' > test ; echo 'TEST2' > test2 ; mkdir subdir ; echo 'FOO' > subdir/foo ; git add . ; # commit to MASTER repo. git commit ; # set remote repo. as ORIGIN. git remote add origin ssh://foo.mydomain.com/path/to/gittest.git ; # MASTER -push-> ORIGIN. git push origin master ;
the 2nd. WORK TREE (CLONE of the 1st.)
# clone remote repo. git clone ssh://foo.mydomain.com/path/to/gittest.git ./gittest.clone ; cd ./gittest.clone/ ; vi test ; ... git add . ; # commit to MASTER repo. git commit ; # MASTER -push-> ORIGIN. git push origin master ;
the 1st. WORK TREE
# MASTER <-pull- ORIGIN. git pull origin master ;
clone? branch?
TODO
