git 操作(自用)

git 操作

  1. git init

  2. git remote add origin https://#.git

  3. git pull origin fillcourse --allow-unrelated-histories

  4. git add -A

  5. git commit -m "init"

  6. git branch fillcourse //分支名

  7. git checkout fillcourse

  8. git add -A

  9. git commit -m "init"

  10. git push origin fillcourse

使用强制push的方法:

$ git push -u origin master -f

链接:https://www.cnblogs.com/chenwolong/p/GIT.html

上传新添加的
git add -A
git commit -m "新增内容"
git push origin master:dlnu_kjc(或
git )

posted @ 2022-11-23 18:22  bule蓝色  阅读(10)  评论(0编辑  收藏  举报