this post was submitted on 29 Jun 2023
229 points (100.0% liked)
Git
29 readers
2 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
- Follow programming.dev rules
- Be excellent to each other, no hostility towards users for any reason
- 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 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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
andgit 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.I would say capital letters tend to be more destructive. So I would not blindly useful them without knowing what they do first.
the f (and r) in rm -rf: am I a joke to you
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.Lessons from this thread: