138 points · by lukasz · 16y ago · 71 comments
At assorted Web design/development gatherings I've seen a big divide between coders types, almost all of whom use some form of version control, and designer type, whose idea of version control is the periodic use of winzip or stuffit.
Having more articles like this is Designer Land is fantastic.
I would urge developers who work with designers to consider arranging some sort of presentation, perhaps at lunch, about version control. Spread the love.
> Because Subversion doesn't store revision history on the client, it is well suited to managing projects that deal with lots of large, opaque binary files. If you check in fifty revisions to an incompressible 10MB file, Subversion's client-side space usage stays constant The space used by any distributed SCM will grow rapidly in proportion to the number of revisions, because the differences between each revision are large.
> In addition, it's often difficult or, more usually, impossible to merge different versions of a binary file. Subversion's ability to let a user lock a file, so that they temporarily have the exclusive right to commit changes to it, can be a significant advantage to a project where binary files are widely used.
[1]: http://hgbook.red-bean.com/read/how-did-we-get-here.html
The downside is that the repo grows by that much every time I update the file. The upside is that I get a version history if I need to back out to an older version!
And I just googled before posting, but it looks like it's been ported to git: http://code.google.com/p/tortoisegit
http://github.com/brotherbard/gitx/downloads
I don't actually use it to commit because I have a screwy commit flow, but I'd expect it to work for a basic commit cycle.
git diff | mate - git diff | mate wget -O - 'http://news.ycombinator.com' | less
The -O option is for specifying an output file, but the '-' says to dump the contents to stdout. curl http://example.com/foo.tar.gz | tar zxf -
Tar's input file is "-", which means stdin. This downloads and decompresses a tarball to the current directory, without creating a temporary file that I have to delete later.Yes, a big factor of it is "populist shackling", too. But being popular doesn't just mean that a lot of other people use it, it also means that a lot of other people use it to share code with you. Which is an important step beyond the popularity fallacy.
It's merging workflow is awful - I'm fine with correcting the odd whitespace-as-conflict, but I find the fact that git presents me with >>>>> eyebiting ====== conflict markers <<<<<< even when I'm using a merge tool difficult to excuse.
Most of all, more than once, git has completely eaten work, which hasn't happened to me with a VCS since the days of CVS and corrupted repos.
Frankly, I see two kinds of arguments in support of git: arguments that derive from the fact that it's a DVCS, and therefore apply to other (IMO better) tools, or "community acceptance" (a la github, Rails) which I find frustrating and circular. Oh, and it's somewhat faster for infrequent operations.
Re "eating work", most of the commands that could potentially "eat work" are explicit about blowing things away, and is more a problem of not knowing what your tool is going to do. And Git will never "eat" anything that's actually been committed or stashed without you explicitly telling Git to drop that data.
`git help <command>` should be used liberally if you're not certain of what it's going to do. The documentation is extremely thorough.
Really? I think that is one of its strongest points. being able to switch branches by just going 'git checkout <branch>' and immediately having the entire file structure switched out to what's 'contained' in the new branch was a big win for me.
Git also alerts you when you've made changes and are switching branches, so you can commit or stash your changes to the branch you were on and not mix it up with the new branch, unless thats what you really want to do.
> It's very easy to find yourself on no branch at all
Interesting. In what situation would that happen? I always thought you had to be on some sort of branch (master) at least to use git.
> It's merging workflow is awful - I'm fine with correcting the odd whitespace-as-conflict, but I find the fact that git presents me with >>>>> eyebiting ====== conflict markers <<<<<< even when I'm using a merge tool difficult to excuse.
Sounds like we're complaing about a cosmetic issue.
> Frankly, I see two kinds of arguments in support of git:
How about the fact that its branching model is pretty awesome and it gives you the tools to do exactly what you want with your version control (rebase, amending commit histories etc)?
Can you provide any specifics about this? My understanding (and experience) is that git makes it rather difficult to actually lose work. It may be easy to misplace, but never lose.
I don't think you understand how git works. Calling it "poorly thought through" when you haven't taken the time to understand it is not a compelling argument.
"It's very easy to find yourself on no branch at all"
A branch is simply a pointer to a specific commit. If you checkout a random commit it is likely not a branch. I don't know why you find this troubling.
"It's very easy ... for a developer to believe they've committed work to a shared branch when in fact it's a private one"
Again, this is from a lack of understanding. All commits are to your local repository. It seems you haven't tried very hard to understand how git works.
You might want to customize merge.conflictstyle
I do like the default of git however, and prefer it to, say, Mercurial.
I've never ever found myself on "no branch", and in cases where I've commited a bunch of code to a non-shared branch, I can easily push my branch to origin and make it shared.
Frankly, I see two kinds of arguments in support of git: arguments that derive from the fact that it's a DVCS, and therefore apply to other (IMO better) tools, or "community acceptance" (a la github, Rails) which I find frustrating and circular.
I use Git for exactly those reasons. Why wouldn't I use the DVCS the rest of the community uses? Why would I use, for example, Mercurial or Fossil over git? I think you missed the third argument in support of Git: "I like it and it works well for what I do."
The only non-git DVCS I'd even consider or recommend is darcs--its model is different enough to make it much better for certain workflows than git. It is also incredibly easy to understand and dead simple to use.
I've tried using darcs a few years ago (it was my first DVCS system, actually). Did they fix the exponential runtimes one got occasionally? If yes, I'd probably give it another go.
1. Pull revisions 2. Discover local workspace was corrupted. 3. Delete local workspace and restart.
I'm not a fan of Darcs either. :)
The one thing that still gives me the heebies is the CRLF handling, but I think that's because rails generates unix-style files, and I get a warning from git gui whenever I use those scripts.
Not to mention tortoise git http://code.google.com/p/tortoisegit/
Perhaps a blog like the daily VIM might be a great idea for any keen hackers out there.
But maybe I shouldn't be concerned with programmers like that.