.Checkout

   git checkout --orphan latest_branch

2. Add all the files

   git add -A

3. Commit the changes

   git commit -am "commit message"


4. Delete the branch

   git branch -D master

5.Rename the current branch to master

   git branch -m master

6.Finally, force update your repository

   git push -f origin master

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2021-10-14
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-15
  • 2022-02-13
  • 2021-10-23
  • 2021-08-09
相关资源
相似解决方案