Change the Local Branch HEAD in a Linked Git Repository
When you link a visual application to a Git repo in a Visual Builder Studio project, the branch HEAD in your local copy, by default, references the most recent commit that was pulled or pushed. If the commit referenced by the current local HEAD is removed from the remote branch (for example, because somebody rebased the remote branch and garbage collection occurred), push and pull requests will fail. In this scenario, you can change the current branch HEAD to use the latest branch head or any other commit to resolve the issue.
To change the branch HEAD in your local copy of a linked Git repository:
You can now use the push and pull commands in your visual app's Git menu to push and pull sources that match the new branch head.