Git: Can't delete remote branch permanently -
i know has been asked, i've seen responses on it, nil seems work.
here workflow. create new branch , work on it. utilize multiple computers pushed remote elsewhere
git branch new_branch git checkout new_branch git force -u origin new_branch do of work on 1 of many computers merge master , push.
git checkout master git merge new_branch now want delete branch.
git branch -d new_branch (this works fine , when run 'git branch' shows local master git branch -r -d origin/new_branch (now on computer when run 'git branch -r' it's gone should be) but after delete remote branch, no matter computer i'm on if 'git pull' or 'git fetch' re-pulls new_branch. i've tried prune commands saw , everything. still continues show up.
you have remove branch on remote.
git force origin --delete new_branch this remove branch called new_branch remote repository. (the new_branch local branch on remote. set way, if cd remote repository, making local repository, have local branch called new_branch. branch removing command above.)
when
git branch -r -d origin/new_branch all happening removing remote branch pointer in local repository. lastly command not alter in remote repository.
after having removed branch on remote (using first command above), git remote prune origin start working on other computers, removing remote branches origin/new_branch.
git branch
No comments:
Post a Comment