this post was submitted on 19 Jun 2026
1 points (100.0% liked)

Git

4681 readers
3 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 3 years ago
MODERATORS
top 4 comments
sorted by: hot top controversial new old
[–] red_tomato@lemmy.world 0 points 3 days ago (1 children)

I got a bunch of rules in the exclude file for my own personal trash files in the repo. I’m not a happy man unless I can do git commit -am freely.

[–] no_name_dev_from_hell@programming.dev 0 points 3 days ago (1 children)

git commit -am is for weirdos.

You should do a git add .. Then do a git status. Then do git reset because . meant that all the stuff you didn't want to commit also is now in the staging area, then do a manual git add <dst_path> for your paths. Then do a git add . by accident, and repeat.

[–] red_tomato@lemmy.world 0 points 3 days ago

Not weird. Whenever I use the -a flag on accident I just do git reset HEAD~1, and then do git commit -am on accident again.

[–] procesd@lemmy.world 0 points 3 days ago

Thanks! That'll be useful to keep my ad-hoc degug files out of the git status list