Giter VIP home page Giter VIP logo

Comments (8)

randomecho avatar randomecho commented on August 16, 2024

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.

from git-reference.

matthewmccullough avatar matthewmccullough commented on August 16, 2024

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):

  • Most coding is forward moving.
  • Git allows craftsmen and craftswomen to think about making the history beautiful, not just the "end state."
  • When you create more handsome intermediate states, it is easier to roll back.
  • Git revert surgically inverts an old (bad) commit with a new one at the end of the timeline. This is like a banking transaction where you write a new ledger entry that apologizes for the mistake, not erasing the old incorrect ledger entry.

from git-reference.

randomecho avatar randomecho commented on August 16, 2024

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.

from git-reference.

matthewmccullough avatar matthewmccullough commented on August 16, 2024

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

?

from git-reference.

randomecho avatar randomecho commented on August 16, 2024

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

from git-reference.

matthewmccullough avatar matthewmccullough commented on August 16, 2024

@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.

from git-reference.

alasheevayuliya avatar alasheevayuliya commented on August 16, 2024

No sharing

from git-reference.

brntbeer avatar brntbeer commented on August 16, 2024

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

from git-reference.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.