Answers for "delete commit from remote branch"

167

delete branch from remote

// delete branch locally
git branch -d localBranchName

//delete local branch that is unmerged
git branch -D localBranchName

// delete branch remotely
git push origin --delete remoteBranchName
Posted by: Guest on April-07-2020
3

delete remote commit

git reset --hard <last_working_commit_id>
git push --force
Posted by: Guest on April-30-2021
20

git delete remote branch

$ git push origin --delete feature/login
Posted by: Guest on February-17-2020
0

remove last commit from remote

git push origin +HEAD^:<name of your branch, most likely 'master'>
Posted by: Guest on October-25-2020
0

how do i delete remote branch

//delete the remote name in git branch

git remote remove <name_of_remote>
Posted by: Guest on May-06-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language