baiyunjn 发表于 2018-1-13 22:31:29

git+sourcetree创建仓库

  1、git上创建版本库
https://images2015.cnblogs.com/blog/824167/201702/824167-20170221092731023-1751146249.png
  2、安装sourcetree
  3、创建空目录
  我本地空目录为D:/shenghuojia
  4、打开sourcetree,点击clone/new ,选择clone repository选项卡,设置原路径为git版本库的url,设置目标路径为空目录名D:/shenghuojia,然后点击克隆
https://images2015.cnblogs.com/blog/824167/201702/824167-20170220160854273-2071840911.png
  5、完成克隆后,把需要提交的代码移到空目录D:/shenghuojia下,然后在sourcetree上全选所有文件,点击add to index
  6、add完后,选中所有文件,点击commit,
  7、commit完后,点击push推送。
页: [1]
查看完整版本: git+sourcetree创建仓库