the phrygian cap



Ohloh profile for Luis de Bethencourt

<Junio 2018
Lu Ma Mi Ju Vi Sa Do
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  

Creative Commons License

planet gnome
planet ubuntu
alberto ruiz
andy wingo
jeff fortin
slomo's blog
jan schmidt
vincent's random waffle

"all religions, arts and sciences are branches of the same tree. all these aspirations are directed toward ennobling man's life, lifting it from the sphere of mere physical existence and leading the individual towards freedom." albert einstein

The Git Hobgoblin

All the credit to Steve Losh

A novice was learning at the feet of Master Git. At the end of the lesson he looked through his notes and said, “Master, I have a few questions. May I ask them?”

Master Git nodded.

“How can I view a list of all tags?”

git tag“, replied Master Git.

“How can I view a list of all remotes?”

git remote -v“, replied Master Git.

“How can I view a list of all branches?”

git branch -a“, replied Master Git.

“And how can I view the current branch?”

git rev-parse --abbrev-ref HEAD“, replied Master Git.

“How can I delete a remote?”

git remote rm“, replied Master Git.

“And how can I delete a branch?”

git branch -d“, replied Master Git.

The novice thought for a few moments, then asked: “Surely some of these could be made more consistent, so as to be easier to remember in the heat of coding?”

Master Git snapped his fingers. A hobgoblin entered the room and ate the novice alive. In the afterlife, the novice was enlightened.

2 Comentarios

Referencias (TrackBacks)

URL de trackback de esta historia


De: Chris Cunningham Fecha: 2013-04-10 15:39

I think you've come away with the wrong lesson, there.

- Chris

De: Anonymous Fecha: 2013-04-10 21:13

In fairness, the best answer to "how can I view the current branch" is either "git branch" or "git status", unless you need something programmatically parseable.

In any case, quite frequently the answer to "some of these could be made more consistent" is one of two things: either "sure, we'd love to" (which *has* happened in Git in the past) or "sure, but we can't do that without compatibility issues with old scripts/fingers, so if we do it we'd have to do so very carefully".

Dirección IP: (b768b8143f)
¿Cuánto es: diez mil + uno?

©2007-2015 luis de bethencourt guimera
powered by Blogalia