git: 新建repository

上一篇 / 下一篇  2013-10-23 21:40:17 / 个人分类:git

Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/NewFounder/new.git
git push -u origin master

Push an existing repository from the command line

git remote add origin https://github.com/NewFounder/new.git
git push -u origin master

TAG:

 

评分:0

我来说两句

Open Toolbar