What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-01-31 11:00:25
rename a branch alredy pushed
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... Add solution -
Shell/Bash 2021-08-30 05:52:01
git start over
# checkout the master branch git checkout master # create a new branch so you can find the old code easily git branch oldStuff-KeepingForReference # push the branch to github git push origin oldStuff-KeepingForReference # You currently have the master ... Add solution