码迷,mamicode.com
首页 > 其他好文 > 详细

Git 使用实例

时间:2018-08-08 00:33:48      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:upstream   rem   you   ranch   cmd   user   事先   git push   stream   

cmd
cd project-directory
git init
git config user.name ‘yourname‘
git config user.email ‘youremail@domain.com‘
git pull https://github.com/yourname/yourrepository //不需要帐号密码
git log
…… //修改某些东西
git status
git diff
git add .
git commit -m ‘modify something‘
//git push –set-upstream url branchname
git push --set-upstream https://github.com/yourname/yourrepository master
//显然,需要 github 帐号,且事先在 github 建立仓库。

Git 使用实例

标签:upstream   rem   you   ranch   cmd   user   事先   git push   stream   

原文地址:https://www.cnblogs.com/dailycode/p/9440418.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!