преименуване на тема git
git branch -m <new_name>
промяна на името на местен клон на
git branch -m <newname>
git преименуване на местната власт
git branch -m <oldname> <newname>
промяна на името на клони git
$ git checkout Branch-Name-You-Want-to-Change
$ git branch -m New-Branch-Name
Git промяна на името на отдалечени клонове
1. Verify the local branch has the correct name:
git branch -a
2. Next, delete the branch with the old name on the remote repository:
git push origin ––delete old-name
3. Finally, push the branch with the correct name, and reset the upstream branch:
git push origin –u new-name
Alternatively, you can overwrite the remote branch with a single command:
git push origin :old-name new-name
Resetting the upstream branch is still required:
git push origin –u new-name
как да се промени името на клони в git
# Start by switching to the local branch which you want to rename:
git checkout <old_name>
# Rename the local branch by typing:
git branch -m <new_name>
# At this point, you have renamed the local branch.
# If you’ve already pushed the <old_name> branch to the remote repository,
# perform the next steps to rename the remote branch.
# Push the <new_name> local branch and reset the upstream branch:
git push origin -u <new_name>
# Delete the <old_name> remote branch:
git push origin --delete <old_name>
# That’s it. You have successfully renamed the local and remote Git branch.