前期准备:先行设置SSH KEY(请看我之前发的关于设置添加SSH的文章)

直接上命令:

clone 已有仓库到身边的开发环境中

git clone git@github.com:<yourname>workingdesktop.git

将源码文件夹拷贝到开仓库

cp -R file1 file2 (该命令将把file1整个文件夹及目录下的所有内容复制到名为file2目录下)

然后命令行进入开仓库:

cd XXX

开始使用git命令

git add "XXX"     
git commit -m "提交信息“
git push

 

相关文章:

  • 2021-05-14
  • 2021-10-23
  • 2021-04-05
  • 2021-11-15
  • 2021-09-15
  • 2021-11-27
  • 2021-04-09
  • 2022-12-23
猜你喜欢
  • 2021-12-03
  • 2021-10-18
  • 2021-09-28
相关资源
相似解决方案