Doing Quick Experiments In Gitby@dat-tran

Doing Quick Experiments In Git

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

In this mode, commits in "detached" mode don't belong to any branch. Instead of creating a new branch, you can checkout the branch where you want to start the experiment. The changes you made while in this mode are orphaned and will be purge in the next garbage collection run. If I don't like the new color, I can just checkout other branch and forget about changes I made in detached HEAD mode. Now, if I like the changes, the changes are persisted in the new branch.

Company Mentioned

Mention Thumbnail
featured image - Doing Quick Experiments In Git
Dat Tran HackerNoon profile picture

@dat-tran

Dat Tran


Receive Stories from @dat-tran

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa