git常用命令

 

 

...或在命令行上创建一个新的存储库

 

 
echo "# 911xinfu" >> README.md
 git init 
git add README.md 
git commit -m "first commit" 
git remote add origin https://github.com/xiaomengceo/911xinfu.git 
git push -u origin master

 

 

.或从命令行推送现有存储库

 

 
git remote add origin https://github.com/xiaomengceo/911xinfu.git 
git push -u origin master

 

 

..或从另一个存储库导入代码

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.

posted @ 2019-10-12 11:40  心雨星空  阅读(161)  评论(0编辑  收藏  举报