“Ändern Sie den Verzweigungsnamen” Code-Antworten

Git benennen die Remote -Zweigstelle um

# Rename the local branch to the new name
git branch -m <old_name> <new_name>

# Delete the old branch on remote - where <remote> is, for example, origin
git push <remote> --delete <old_name>

# Or shorter way to delete remote branch [:]
git push <remote> :<old_name>

# Push the new branch to remote
git push <remote> <new_name>

# Reset the upstream branch for the new_name local branch
git push <remote> -u <new_name>
The Code Doctor

Ändern Sie den Zweignamen Git Local Lokal

// If you are in a different branch:
git branch -m old-name new-name

// If you are in the same branch:
git branch -m new-name
Inquisitive Iguana

Bearbeiten Sie Branchname Git

$ git checkout Branch-Name-You-Want-to-Change
$ git branch -m New-Branch-Name
Sore Skipper

Ändern Sie den Verzweigungsnamen

git branch -m <newname>
Enchanting Echidna

Benennen Sie den Filialennamen in Git um

git branch -m <current_name> <new_name> # Change Name For Any Branch
git branch -m <new_name> # Change Name For Current Branch
Terrible Tern

Ähnliche Antworten wie “Ändern Sie den Verzweigungsnamen”

Fragen ähnlich wie “Ändern Sie den Verzweigungsnamen”

Weitere verwandte Antworten zu “Ändern Sie den Verzweigungsnamen” auf Shell/Bash

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen