What Should You Do If Your Git Branch Has Been Deleted OR Had To Be Deleted.


only we can survive using our local project to solve this question.
follow the steps carefully.
  • make a copy of your local project.
  • keep deleted branch repository branch name as current git branch.
  • create a new branch a name that you deleted repository's branch name.
  • open terminal and run
    • git add .
    • git commit -m"message"
    • git pull
    • git push
  • create a new branch that you wanted to move your project.
  • make a merge from A to B ( A - deleted branch name / B - New branch name )
  • now you can deleted A branch also.

thank you.

Comments

Popular posts from this blog

Install Ubuntu (20.04.1 LTS) with Windows (Dual boot mode)

How to Mirror Android Screen to Ubuntu(GNU/Linux) Desktop With Scrcpy

Connect GitHub to your machine using SSH