Earlier quoted context omitted.
Slightly offtopic, I have always considered a strange failure of git that branches are second class citizen in git, not worthy of the same versioning mechanisms as files. It is not unreasonable to expect a versioning system to be able to track the history of branches. And if I don't want to loose a file, just because it was deleted some time in the past, surely I also don't want to loose a branchjust because it was d…
Doesn’t the reflog serve that purpose though? Branches are just labels for a commit, and all commits (and names) are visible in the reflog.
Think Twice Before Downgrading to a Free GitHub Account
11–20 of 102 posts
Re: Think Twice Before Downgrading to a Free GitHub Account
#12Re: Think Twice Before Downgrading to a Free GitHub Account
#13Earlier quoted context omitted.
Doesn’t the reflog serve that purpose though? Branches are just labels for a commit, and all commits (and names) are visible in the reflog.
Come the next garbage collect, the file changes in a deleted branch are forgotten. If I don't want to loose changes, garbage collect shouldn't be a thing, because there is no garbage, just history.
Also, the spelling is "lose".
Re: Think Twice Before Downgrading to a Free GitHub Account
#14> I live in mortal fear of making a dumb mistake and losing irreplaceable source code. Then store backups of your repositories somewhere else than GitHub.
Re: Think Twice Before Downgrading to a Free GitHub Account
#15> I live in mortal fear of making a dumb mistake and losing irreplaceable source code. Then store backups of your repositories somewhere else than GitHub.
Exactly. Git and github aren't backup tools. I always feel like github (and others) added to the git workflow things that are bolted on top of it and tie you to their platform.
Re: Think Twice Before Downgrading to a Free GitHub Account
#16Re: Think Twice Before Downgrading to a Free GitHub Account
#17Earlier quoted context omitted.
Doesn’t the reflog serve that purpose though? Branches are just labels for a commit, and all commits (and names) are visible in the reflog.
Come the next garbage collect, the file changes in a deleted branch are forgotten. If I don't want to loose changes, garbage collect shouldn't be a thing, because there is no garbage, just history.
Garbage is created every time you amend or rebase. What is the value of keeping around commits that are unreachable through any branch, containing typos in the commit messages?
It seems to me that source control can really bring out the hoarder in people, a fear of throwing away anything because you might need it later. I prefer it when the commits in a repo tell a story, but keeping everything that didn't end up on the master branch... why?
Re: Think Twice Before Downgrading to a Free GitHub Account
#18It's not a big deal to me, I'll probably just make the repos public.
Re: Think Twice Before Downgrading to a Free GitHub Account
#19What? What is he doing that it makes him fear code loss?
Re: Think Twice Before Downgrading to a Free GitHub Account
#20What? What is he doing that it makes him fear code loss?
It doesn't actually delete the commits, but you can't find them anymore if you don't remember the hash of the former head commit of the branch