上传文件:

git init 
git add *
git commit -m "description"
//git remote rm origin  或查看当前 git remote -v
git remote add origin https://github.com/xbtest/Demo01.git
//git pull --rebase origin master
//git push -u origin master
git push origin master

删除文件:

# 删除文件夹
git rm --cached -r filename

# 删除文件
git rm --cached filename

# 先执行完所有的删除操作,然后
# 再提交
git commit -m "remove directory"

# 最后
git push

待续。。。

借鉴原文地址:https://www.cnblogs.com/tbgatgb/p/11066762.html

相关文章:

  • 2021-10-19
  • 2021-10-03
  • 2021-07-23
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2021-12-01
猜你喜欢
  • 2021-06-15
  • 2021-11-20
  • 2021-10-19
  • 2021-09-20
  • 2021-07-26
  • 2022-03-02
相关资源
相似解决方案