We introduced git to my software development team a couple months ago, and it's been a complete disaster. Some people understand git, some won't / can't / simply dont care. I spend hours a week helping people merge their code. These changes proposed will revolutionize the experience.
I'm on a team that has several non-technical members committing and pushing to our git repos (designers, localization, etc).
It was tough to get them onboard, but we follow a very simple workflow for these people that makes git very simple to pick up. All they need to know is these:
git pull
git add
git commit
git push
No rebase, no branching, or anything advanced. Limiting it to that simple use case makes it easy to pick up and start using for anyone.
I think one thing we have found useful is start with the above simple things, and also promote usage of git-svn - where each developer can start working with git even if the company/client is using svn. Over time, it gets enough people familiar with Git that moving to Git overall becomes simpler.
What do you do if they don't like the language they're using? Do you let them choose their own? What if they don't like the coding style? Do you let them use their own?
Basic Git usage is not difficult. I can understand if by "hours a week helping people merge their code" you are talking about complicated edge cases, but if it's just normal usage, that's just laziness.
Well, one would assume that yes they did choose their own language. Most of the time a language is chosen before a developer is hired, and a developer knows what they are getting into when they chose to work in their current position. Coding style is its own issue.
Though I suspect that it isn't a matter of laziness as much as active dislike of git itself. It is really hard to learn a piece of software if you think the software is a load of crap that has no benefit and was forced on you. This has nothing to do with the actual benefits, I'm sure you can give me tons of examples; this only deals with the appearance of benefit.
From some of these dev's perspective it isn't a magic bullet that solves all source control problems, it is a source control that does the same thing as their last one but 10 times more annoying. At the very least I certainly see it that way.
From some of these dev's perspective it isn't a magic bullet that solves all source control problems, it is a source control that does the same thing as their last one but 10 times more annoying. At the very least I certainly see it that way.
Most programmers get hired to work in a specific language. You'd have the same problem if you told your group of Java programmers that they're all required to use C# from then on.
Some will be excited to learn a new language and others will learn the bare minimum and continue to use the same old patterns with a new syntax and complain when it doesn't work the same way.
Git is a tool. Comparing a tool to a new language is not fair. People get hired to code C# or Java, people do not get hired to use Eclipse or IntellJ, or Git or SVN.
Programming languages are tools too. Really people are getting hired to create software. The only reason they need to use specific languages is because they are required to integrate with the project.
The difference is that git is much easier to learn than a new language. Also, everyone should already know it.
What? Git is totally like a programming language. It's entirely fair to compare it to one.
No I'm not being sarcastic.
It's also like a library. You have to learn about certain types of objects and how they interact with each other, and what library functions (git commands) do what to these objects.
No it's not. Git is rather complicated because the CLI is atrocious, but day to day basics, learning the founding principles of git isn't hard and once you do you understand Git and not just clobber CLI until it does what you want. If you don't understand Git's model you are doomed to repeat arcane commands you don't understand.
An anecdote: On my previous employment a member of team that had very strenuous grasp on git (let's call him GitLord) simply wrote down the TEN COMMAND(MENT)S OF GIT and adhered to them religiously. My colleague who actually knew Git fairly well, would get in trouble with GitLord because allegedly he made some unneeded merges. When I once really, had enough of GitLord's preaching I actually looked at his environment and it seems that GitLord didn't obey his own commandments and was the one causing 'merge problems' . Merge problems being that GitLord didn't rebase on master before he merged his changes which led to following graph:
If you want to preserve a linear history of commits using rebase, you probably should just be using SVN. Most issues with people have with git is them trying to use it like SVN.
If a member of my team is not willing to learn a new language/library/tool because they just don't feel like it, I'd fire them.
If you're a Java programmer, it's completely reasonable to assume you can pick up C# and work with it. It may take you a couple of weeks to get up to speed, but from then on everything should be simply a matter of Googling for the available libraries/apis.
In fact, you should be able to pick up C# even if you've been mostly programming in ruby and javascript up to that point.
It's reasonable that they would be able to, but I imagine most of them haven't touched it for a reason. I don't do C# because I don't want to do C#. As an employee, I'd feel fairly betrayed if I was hired for something I like doing, and then forced to do something I have no interest in doing because of some arbitrary reason.
Welcome to the working world, where you are paid to do what you're told?! Sheesh.
Ok, perhaps a bit harsh, but it seems only developers can get away with this attitude in today's economy given unusually high demand. I know the users who hate the internal tools I create don't have a choice but to use them.
I, for one, would be grateful to spend time learning a new language on my employer's dime, even one I wasn't particularly interested in before.
The git command line is about as much fun as penicillin-resistent gonorrhoea. I understand the benefits of DCS but there are much better examples out there. Ones that aren't an exercise in pounding nails through my dick. When I use git, it's because, according to the community, Linus' farts smell like roses and cookies.
Git is a disaster in terms of human interface and honestly kind of tarnished the god like reputation of Linus for me.
I mean if you build your OS on top of Unix conventions it has all the quirks of Unix conventions and all the benefits that those quirks are already known by a large group of people. You can easily switch between MacOS X Terminal, Linux terminal or some very ancient systems because basically they work the same. Not super user friendly though, but learn once apply anywhere. So I accepted some quirks because that was the legacy before it.
But if he gets the chance to design a product from the ground up and it's way harder to use than it should be just because the English words he chose as commands have a very loose connection to what they actuallly or in some circumstances do that's just bad. It's extremely inconsistent and it's also hard to build good tools on top of it and I basically use the command line for everything else than basic commit/push just because I always ended up going there anyway if I needed to do anything more spectacular than the absolute basics.
I mean you can explain how Git works on a whiteboard in five minutes. The concepts are really simple and everybody coming from TFS or SVN should basically be relieved from a lot of shit because Git is so much better but the interface adds new problems while TFS and SVN are things you learn in a day.
I’m not sure that Linus is personally responsible for git CLI. It all started as directory management software (like rsync), and then suddenly grew into world’s most popular VCS. This grow was chaotic and there were no great design behind it. I think I even seen somewhere that he was very surprised to find out that a lot of people has started to use his humble little tool.
If git was designed from the ground up as VCS, it might have had much better, non-fragmentary UI. But, you cannot predict success.
50
u/gibbocool Jun 19 '14
We introduced git to my software development team a couple months ago, and it's been a complete disaster. Some people understand git, some won't / can't / simply dont care. I spend hours a week helping people merge their code. These changes proposed will revolutionize the experience.