this post was submitted on 29 Jun 2023
309 points (98.7% liked)

Git

2938 readers
1 users here now

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Resources

Rules

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

founded 2 years ago
MODERATORS
309
Your Git horror stories (programming.dev)
submitted 2 years ago* (last edited 2 years ago) by canpolat to c/git
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] qwop 4 points 1 year ago (4 children)

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 5 points 1 year ago (3 children)

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

[–] Zxmon 1 points 1 year ago (1 children)

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

[–] nous 1 points 1 year ago (1 children)

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 1 points 1 year ago

Lessons from this thread:

  • be wary of all letters
  • numbers also somewhat sus
load more comments (1 replies)
load more comments (1 replies)