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
posted @ 2015-05-21 14:45  xiaomi2013  阅读(149)  评论(0编辑  收藏  举报