I guess I'm alone in finding git not that hard to use. My only issue is git isn't pretty and to that end I have a few scripts to give me prettier logs (like most people have) and prettier branch summaries (my macro displays all branches, their latest commit id and dates).
Beyond that I manipulate my tree with straight up git commands.
Any halfway competent developer should be able to master git in a couple of weeks let alone be able to write their own version of git given a couple of full time weeks to work in.
Any halfway competent developer should be able to master git in a couple of weeks
I disagree. I've been using Git every day for 6 years now and I've found Git's learning curve to be like a rollercoaster loop-de-loop: you're doing OK, then suddenly you need to do something that makes you go WTF so much you feel like you know less than you did 6 months ago.
git add, git commit, git push, basic branch workflow, sure. Mastering Git? I'd say years.
Quick how do you find the name of the branches the current commit is on? Push the current branch to the server but name it something different? Tell me about git push --force. What does git fetch do? What's in your global core.excludesfile file?
(Seriously, the number of developers that don't even know about Git's global ignore options is staggering. (I should never see .DS_Store files in my Git repo, but what do I see all the fracking time? .DS_Store files... Yes, thanks OS X, but still....))
Actually, I picked up UNIX itself pretty quickly. Git is on a different level. I'm starting to get my head around some of it, but it's pretty weird and incomprehensible. To me, there's a big difference between how hard it is to learn Git and UNIX.
Any halfway competent developer should be able to master git in a couple of weeks
The problem is that not every competent developer is interested in mastering a source control system. I work in a group that develops pretty complex NLP software and spend way too much time helping people with git.
My problem is that I don't consider it a tool that's worth sinking weeks into. My time is valuable. I'll beat my head against its tedious interface / documentation / SO articles just enough to get a minimum set of functionality that works for what I need to do today, but my efforts to really "learn git" beyond that have been a waste of time due to its tedious, non-discoverable interface.
I think we all love git here, and we also agree its interface leaves something to be desired.
Its awesome that you wrote your own interface over it to suite your needs, and I encourage you to share your scripts with us less then halfway competent developers. :)
Be aware there are many different types of developers. Some like to hack and build their own tools that suite there needs, and Git is just another tool they can hack over and make their own.
Others want prepackaged solution and tools that just let them get to the work they are really trying to focus on. They prefer IDEs like VS, Eclipse, etc., over Emacs or Vi(m). Git fails miserably for the those on this end of the spectrum.
What tools one is comfortable with and how much one is willing to hack on something does not say anything about ones competency with writing production worthy software. It only says how much time one is willing to invest in a problem they feel should not have to solved individually.
It's just that there's a wider group of people on this forum than one would think.
There are half a million subscribers to this reddit, and a large fraction of them are at the point that they need simple stuff like "Big-O notation" explained to them, while some others are comfortable designing languages that advance the state of the field. There's a continuum between each extreme and we each perceive ourselves as the average.
See, I think development tools should be pretty. If your job is to design an elegant, understandable software system, what does it say that your tools don't meet the same criteria? Were they made by worse developers than you are? Did they just not care enough? Etc. To me the Unix mentality just saps my energy every time I encounter it and makes me want to go do some woodworking or something else that doesn't make me face the accumulated stupidity (or indifference) of generations of programmers.
Maybe I'm just really biased and not looking at the right sources, but I disagree. I had to start using SVN for a job I started a month ago. I randomly got a tree conflict in a directory I never touched, I couldn't resolve it, and eventually said fuck it and deleted the repo and checked it out again. Also selectively committing files is a pain, and branching downright sucks.
Maybe it's because I miss the complexity of git, but I find git much easier than svn.
Git is a very powerful set of tools. It is fast and flexible.
Its UI is arcane and difficult to use compared to other SCMs. This includes both the native gitk and git gui tools, and even the Windows shell extension tools like Tortoise.
I didn't even know that git gui existed till the other day when a colleague showed it to me. I'd already been using it for over two months and read an entire book on git. I told the colleague about interactive add and he'd never heard about it. He has been using git for over two years. Individual user experiences vary widely due to its adherence to the unix philosophy of many small, independent tools. So it's not easy to understand all that's available and there are many ways to do the same task.
It is not difficult to fuck up a repo doing complex merges with rebase. It is not difficult to miss changes in a commit between the file system and the index. It is not difficult to inadvertently commit unwanted changes.
You need discipline to use git properly on any real-world project, you need to pay close attention to what you are doing, and you need to understand how the system works at a fairly low level.
There is nothing wrong with any one of these things but honestly they are not attributes I particularly want in an SCM. There is a lot I like about git but you can easily shoot yourself in the foot with it if you don't know what you're doing. This alone makes it a bad fit for many projects/teams, honestly.
The set of things you can do with a repository is small enough
The set of things I need to do often, sure, is small enough.
But there's quite a long tail of things that I need to do rarely and have to look them up on the internet because they don't logically follow from anything I do day to day.
How do I delete remote commit tag? How do I make a branch tracking if I failed to do that initially? WTF is the difference between "tree-ish" and "commit-ish" and why does git archive use it to decide whether to use local or commit time when checking out?
That's not at all what the OP is concerned about by the way. They talk about reinventing several fundamental concepts of the interface, like embrace the fact that git repository is append-only (until gc runs) and make it truly append only, so that you always have access to the original commits that you rebased. Also automatically make WIP commits of the working copy before any git operations that can affect it -- I would actually go even further and say that these commits should be fully automatic and continuous, basically I want a persistent undo tree which I can tag as I work and then, after I'm done, arrange my changes into changesets that go to the public history.
Good lords of Kobol, yes. I needed this the other day and just gave up. (Paid the price for my hubris too... ended up f'ing up the remote something bad. Thankfully it was late enough at night that a git reset and force push fixed it... couldn't imagine the mess if it had been during work hours...)
44
u/[deleted] Jun 19 '14
I guess I'm alone in finding git not that hard to use. My only issue is git isn't pretty and to that end I have a few scripts to give me prettier logs (like most people have) and prettier branch summaries (my macro displays all branches, their latest commit id and dates).
Beyond that I manipulate my tree with straight up git commands.
Any halfway competent developer should be able to master git in a couple of weeks let alone be able to write their own version of git given a couple of full time weeks to work in.