We are committed to continuing our deep dive into Git from the Bottom Up by John Wiegley, while Allen puts too much thought into onions, Michael still doesn’t understand proper nouns, and Joe is out hat shopping.
The full show notes for this episode are available at https://www.codingblocks.net/episode192.
git branch -v
.git reset --hard commitHash
– This is dangerous. --hard
says to erase all changes in the working tree, whether they were registered for a check-in or not and reset HEAD
to point to the commitHash
.git checkout commitHash
– This is a safer option, because files changed in the working tree are preserved. However, adding the -f
parameter acts similar as the previous command, except that it doesn’t change the branch’s HEAD
, and instead only changes the working tree.Stuff You Should Know
If you've ever wanted to know about champagne, satanism, the Stonewall Uprising, chaos theory, LSD, El Nino, true crime and Rosa Parks, then look no further. Josh and Chuck have you covered.
The Joe Rogan Experience
The official podcast of comedian Joe Rogan.
24/7 News: The Latest
The latest news in 4 minutes updated every hour, every day.