this post was submitted on 19 Jun 2026
1 points (100.0% liked)
Git
4681 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 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
git commit -amis for weirdos.You should do a
git add .. Then do agit status. Then dogit resetbecause.meant that all the stuff you didn't want to commit also is now in the staging area, then do a manualgit add <dst_path>for your paths. Then do agit add .by accident, and repeat.Not weird. Whenever I use the
-aflag on accident I just dogit reset HEAD~1, and then dogit commit -amon accident again.