git - When is it safe to delete local branch? -


the situation this:

i created remote branch other remote develop branch -> fetched local -> made changes -> git add -> git commit -> pushed remote , made pull request.

pull request still there , branch hasn't been merged yet.

is safe delete local branch hasn't been merged yet?

i don't want have bunch of local branches don't need anymore.

it's technically safe delete local branch once you've pushed remote branch , retrieve changes remote branch, if pull request not merged yet.

however, i'd wait until pull request merged. whole idea behind having pull requests, opposed allowing merge want, allow feedback loop between developer , maintainer of project. depends on project's etiquette , level of trust maintainer has towards you, may take several roundtrips of improvements before pull requests merged. i'd avoid hassle of having recreate local branch each time , leave there , work on until request merged.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -