We all have been there… For the beginner it’s easy to mess things up. What are your horror stories with Git?

Link to xkcd

  • @qwop
    link
    English
    41 year ago

    I’ve often ended up guessing what things do and messing things up.

    One example is when I couldn’t remember the difference between git checkout -b and git checkout -B, so in my infinite wisdom I decided to use -B because surely capital letters are better! Tried using it to switch back to a branch, and… Yeah, that was annoying.

    • @nous
      link
      English
      51 year ago

      I would say capital letters tend to be more destructive. So I would not blindly useful them without knowing what they do first.

      • @Zxmon
        link
        English
        11 year ago

        the f (and r) in rm -rf: am I a joke to you

        • @nous
          link
          English
          11 year ago

          What I said was not absolute nor complete. It only includes one set of things to be careful with. The f flag is another that you should be wary of using without understanding what it does.

          • @nul
            link
            English
            11 year ago

            Lessons from this thread:

            • be wary of all letters
            • numbers also somewhat sus