There's a post from my friend here: =EnriqueVidal that lets you remove remote branches that have been merged to master, so you can keep things neat on the remote side as well. Sill question, maybe, but why not just work with 2, 3 or 4 if you really must branches? Cannot delete branch 'my-branch-name' Because they are already on that branch. It's not logical to delete the branch that you are already working on it. Just switch to another branch like master or dev and after that delete the branch that you want: git checkout dev. very large teams - of maybe 15 - 30+ developers would have many branches to be reconciled, but this post states distinctly local work (so I assume, it's on one man's machine, or am I misinterpreting? This could work for a solo project, but on a 2+ man team, this would not work as well. Not misenterpreting, rather we just have a different workflow, ( a branch per issue if you would like to think at it like that). See step-by-step how to delete a Git branch locally using the command line, before seeing how much easier it is to manage and. Nevertheless, I'm interested in how different people code in their own ways. Personally I may have master, development, and if I really must, a "messing around" branch. I'm aware that you may be referring to exactly the way I do it - are you? In that case, this would be to clean up your dev branches from local after checking out, is that right? In all of my 1 man projects I do it like that, if there's a team ( >1 ), I like to do the "diaspora" workflow I linked to. I usually never need to clean up on my 1 man projects, on the others I do it around every 3 or 4 months.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |