首页 > 其他 > 详细

Git-往返github和本地

时间:2017-11-17 15:43:48      阅读:199      评论:0      收藏:0      [点我收藏+]

将GitHub仓库Test弄到本地

  • 本地新建文件夹Test
  • 右击运行gitbash
  • 在gitbash中输入git init
  • 在github 仓库选择clone or download
  • 复制链接https://github.com/xxx/xxx.git
  • 在gitbash中输入git clone https://github.com/xxx/xxx.git

将本地文件夹上传到GitHub

  • github中新建仓库NewRepo
  • 在本地文件夹Test中右击选择gitbash,输入git init
  • git status(可有可无)
  • git add .
    git status(可有可无)
  • git commit -m ‘description of this commit‘
  • git status(可有可无)
  • 从github仓库NewRepo点击clone or download,复制链接
  • git remote add origin https://github.com/xxx/xxx.git
  • git push -u origin master

Git-往返github和本地

原文:http://www.cnblogs.com/coding-swallow/p/7851767.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!