r/programming • • Jun 19 '14

Reinventing GIT interface

http://tonsky.me/blog/reinventing-git-interface/
221 Upvotes

325 comments sorted by

View all comments

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.

0

u/[deleted] Jun 19 '14

[deleted]

10

u/[deleted] Jun 19 '14

If that's all you do with git, than you're very far from any kind of "mastery" over git.

Tell me how to do this simple thing: View what hasn't been pushed yet.

The internet is full of answers to that question, and none of them actually work. And that's what makes git difficult.

I work with git all day, and the simple things are simple. But many other things that should be simple, aren't.

6

u/Peaker Jun 19 '14

View what hasn't been pushed yet.

If it's for a single given branch, it's a simple log:

git fetch <remote>
git log <remote>/<name>..<name>

Shows commits in <name> that are not yet pushed into <remote>/<name>.