build a git repo and clone

First machine:

git init --bare gitrepo.git

Second machine:

git clone user@server:~/gitrepo.git
cd gitrepo
touch test
git add test
git commit -a

# '-u' tells git to track the remote master branch with your local master branch
git push -u origin master

上一篇:设计模式-组合模式(Composite)


下一篇:转: Redis基础总结