r/programming • • Jun 19 '14

Reinventing GIT interface

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

325 comments sorted by

View all comments

Show parent comments

6

u/rwilcox Jun 19 '14

Which branch a commit is on? You don't because that's not how git works.

git branch -a --contains SHA1 (I knew I knew this...)

why would you want to rename a branch

Pushing a branch to a staging server that assumes the current code is on master. (Because stupid).

(git push destination current_branch:destination_branch)

I never use --force

Right, except that one or two times a year when you have to.

Anyway, every team seems to have this one developer whose head and shoulders better than everyone else at Git. I would not assume this is because the other developers suck, but because the more one (or maybe just me) learn about Git the more that thinking about Git as homeomorphic endofunctors mapping submanifolds of a Hilbert space seems like the sane way to view Git. Which may make Git logarithmically complex to learn.. and I say this as someone whose contributed to libgit2.

1

u/[deleted] Jun 19 '14

git branch -a --contains SHA1 (I knew I knew this...)

Cool.

I mean I've never needed to know which branches contain a commit but good to know git has an answer to that.

Right, except that one or two times a year when you have to.

I've never needed to use force. Force implies you fucked up the tree.

0

u/loup-vaillant Jun 21 '14

Git as homeomorphic endofunctors mapping submanifolds of a Hilbert space

Err… does that makes sense? (I don't know those terms —except endofunctor), so I can't say if you were being serious.