I have a repository on Bitbuket with two branches:
 $ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
  remotes/origin/ng-1
master contains old tool code, and ng-1 - new.
What I want to do - is switch master to ng-1 so when git pull will be executed - it will pull code from "master" - but with new code.
Let's say - I want "move" code from master to ng-1 - and from ng-1 to master.
As I googled - this can be done with:
$ git update-ref HEAD ng-1
Thus - "main default" branch will became ng-1 and master will be saved as my "backup".
If something will go wrong - I'll can just do vice versa:
$ git update-ref HEAD master
Am I correct?
 
     
     
    