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.
4 Comments
red_tomato@lemmy.world · 6 pts · 55d
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 -amfreely.no_name_dev_from_hell@programming.dev · 15 pts · 55d
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.red_tomato@lemmy.world · 3 pts · 55d
Not weird. Whenever I use the
-aflag on accident I just dogit reset HEAD~1, and then dogit commit -amon accident again.procesd@lemmy.world · 2 pts · 55d
Thanks! That'll be useful to keep my ad-hoc degug files out of the git status list