git - What's the difference between 'closing' and 'deleting' a branch? -


what's difference between 'closing' , 'deleting' branch?

i see these 2 terms bandied i'm not sure mean precisely in context of git. both referring same thing (git branch -d) or there subtle difference of should aware?

i may wrong far understanding that, unless tag branch prior deletion, once branch deleted there's no evidence left behind ever existed. correct?

there no explicit command in git referred close possible convention, programmers refer branch "closed" when merged project , no longer being maintained. branch kept around, other times deleted, idea is not being used anymore.

to answer second question, there few ways can keep track of branch after delete it. common way via remote host. running git -d branch_name destroy local copy. remote host still have version in case need later. can stash branch delete , come later. how stash

git stash save "i'm saving branch before delete because yolo" 

here link on how use stash achieve end, end unusual use case: https://www.kernel.org/pub/software/scm/git/docs/git-stash.html

basically, if stash branch have record of existence after deleting it. additionally, if merged branch other branches branches still know existence of deleted branch (mostly existed). again can see given branch knows own merge history git log --graph

there may other ways branch can seen in fashion after deletion, should not issue workflows.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -