In case you have created a branch with a wrong name and pushed your branch to the remote git repository you can follow these steps to change the name of your branch. git branch -m old_branch new_branch # Rename branch locally git push origin :old_branch # Delete the old branch git push –set-upstream origin new_branch ..
Tag : git
There is a easy solution to remove all uncommitted changes from your working directory in GIT git fetch origin git reset –hard origin/master Note: After executing this command, all uncommitted changes will be removes from your working directory. If you want to save the current work before removing all uncommitted changes, you can do: git ..