What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-01-23 05:46:29
git branch from commit
# Create a new branch from previous commit's hash git branch develop 04c900c # Push the new branch to remote repository git push --set-upstream origin develop # Checkout the new branch git checkout develop Add solution -
Shell/Bash 2021-08-27 16:16:02
Git change remote branch name
# 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 remot... Add solution -
Shell/Bash 2021-08-26 10:45:02
git rename remote branch
# 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 remot... Add solution