git branch -m my_feature_branch my_feature_branch_new_name # Rename my_feature_branch
git checkout my_feature_branch_new_name && git push origin my_feature_branch_new_name # Push the backup to the origin, so it is there as reference for other team members.
-
git checkout master # Checkout to the branch that will replace the my_feature_branch
. git checkout -b my_feature_branch # Create a new my_feature_branch off of the master branch in my example.
git push origin my_feature_branch # It will force to push the new branch to the origin too
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)