git / git-reference

Online Git Reference at http://git.github.io/git-reference/
Other
996 stars 363 forks source link

stash and revert #36

Closed wnrosenberg closed 9 years ago

wnrosenberg commented 12 years ago

please add git stash and git revert

randomecho commented 11 years ago

Any ideas on where git revert would fall under on the topics?

Doesn't feel like a basic snapshot type of lesson to learn as it can get messy rather quickly.

And if we based things sort of along the lines of Git SCM, it's not even listed there.

matthewmccullough commented 11 years ago

Would have to think about where it fits, but thinking about how to structure it as a "short lesson," what do you think about this (have used this in the classroom):

randomecho commented 11 years ago

Squashing commits also play into making a beautiful history. You can have a dozen incremental commits all neatly rolled into one umbrella.

Liking the bank ledger analogy. If people forget what ledgers are you could also reference credit card chargebacks.

matthewmccullough commented 11 years ago

Having thought about this, it almost a warrants a separate section on the left nav. "Shaping history"

?

randomecho commented 11 years ago

Agreed. Though, thought that's where you were heading in anyway when thinking about making a lesson of it.

matthewmccullough commented 11 years ago

@randomecho Ah. The lesson isn't for the this, but rather for a slide deck for our training services via http://training.github.com (but will be open source). Was just noting what was working for me in the classroom.

alasheevayuliya commented 9 years ago

No sharing

brntbeer commented 9 years ago

Stash and revert are covered in our training kit at https://training.github.com/kit/intermediate and https://training.github.com/kit/advanced