Based on "
Koanov Wim ."
Silence
One thing but good
Only gods
Hobgoblin
Long and short
Silence
The python programmer passed her
~/.gitconfig
master Gita. Among the lines of code was the following:
')
[alias]
; . ,
; .
pull = pull --ff-only
Master Guith nodded. “
git pull origin master
,” said the programmer.
Master Hit sent the latest recent changes to
master
and automatically merged with the programmer's changes.
“But Master Geeta, didn't I ask to use only fast-forward in my configuration?” She cried.
Master Geet looked at her, nodded and said nothing.
“Then why didn't you warn me about the problem with my configuration?” She asked.
Master Geett replied: "There were no problems in it."
Months later, when a programmer read
git --help config
for another reason, she reached enlightenment.
One thing but good
A unix programmer worked on a cubic farm. She saw Master Geeta walking along the path and ran out to meet him.
“It is an honor for me to meet you, Master Geet,” she said. “I learned the way Unix build programs, according to which everyone should do one thing, but fine. Sure, I can learn a lot from you. "
"Of course," replied Master Geet.
“How can I go to another branch?” Asked the programmer.
“Use
git checkout
.”
"How do I create a branch?"
“Use
git checkout
.”
“How can I update the contents of a single file of my working directory, without using branches at all?”
“Use
git checkout
.”
After the third answer, the programmer suffered an enlightenment.
Only gods
The great historian tried to unravel the difficulties of the wrong merger that happened many months ago. He made a pilgrimage to Master Gita to ask for his help.
“Master Geet,” said the historian, “what is the nature of history?”
“History is immutable. To rewrite it later is to harm the substance of the creature itself. "
The historian agreed, and then asked: "And therefore the relocation of commits that were made is not approved?"
“Verily,” replied Master Geet.
“Great!” Exclaimed the historian. “I have a historical record of a merge commit with two other parents. How can I find out which branch each parent comes from? ”
“History is fleeting,” replied Master Geet, “the knowledge you seek is available only to the gods.”
The historian lowered his head, and enlightenment struck him.
Hobgoblin
The student followed the path of the master Gita. By the end of the lesson, she looked at her notes and asked: “Master, I have a few questions. Can I ask them? ”
Master Guith nodded.
"How to view a list of all tags?"
“
git tag
,” replied Master Geet.
“How can I view a list of all remote repositories?”
“
git remote -v
,” replied Master Geet.
“How do I view a list of
all branches?”
“
git branch -a
,” replied Master Geet.
“How can I see the current thread?”
“
git rev-parse --abbrev-ref HEAD
,” replied Master Geet.
"How to delete a remote repository?"
“
git remote rm
,” replied Master Geet.
"How can I delete a branch?"
“
git branch -d
,” replied Master Geet.
The student thought for a while, then asked: “Of course, some of these commands could be more consistent, making it easier to use them in the heat of coding?”
Master Geet snapped his fingers. The hobgoblin appeared in the room and ate the apprentice alive. In the afterlife, enlightenment descended upon her.
Long and short
Master Geet and the student walked along the bridge.
The student, wanting to learn the unlimited knowledge of Master Gita, said: “
git branch --help
.”
Master Geet sat down and gave a lecture on seven forms of the
git branch
and their many options.
They went on. A few minutes later, they met with an experienced developer traveling in the opposite direction. He greeted Master Gita and said: “
git branch -h
.” Master Geet briefly informed him about the most common options of the
git branch
. The developer thanked him and continued on his way.
“Master,” said the student, “what is the nature of long and short teams? I thought they were equivalent, but when the developer used
-h
, you said something different from what was said with
--help
. ”
“Perspective is all,” the master replied.
The student was puzzled. She decided to experiment and said: “
git -h branch
.”
Master Geet turned and jumped off the railing of the bridge, to the stones, to his death down.
Seeing this at the pupil, enlightenment came down.