在网上找的,记录下来自己使用
1.新增分支

   git checkout --orphan latest_branch

2. 添加问题

   git add -A

3. 提交

   git commit -am "commit message"


4. 删除分支

   git branch -D master

5. 重命名分支

   git branch -m master

6. push分支

   git push -f origin master
 

相关文章:

  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2021-12-30
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-17
  • 2022-12-23
  • 2022-03-11
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
相关资源
相似解决方案