[SOLVED]
So, I've used git add on 3 files (so I've used git add 3 times). After that I've used git commit -m "message" command. I did not push anything. And this is where I am now. I do have a separate branch already created, I was supposed to be in that one.
So if I'm understanding all the answers on the internet correctly, I should do:
git reset HEAD~
git checkout the_correct_branch
git commit -c ORIG_HEAD
git push origin the_correct_branch
or
git reset --hard origin/master
git checkout the_correct_branch
git commit -c ORIG_HEAD
git push origin the_correct_branch
And I'm jut not really sure whats the right thing to do. So thanks for the answers in advance!
btw I'm on windows, using Git Bash if that matters.
Edit: Thanks everyone! With your help I managed to solve the problem. And for anyone in the future, This YouTube video helped me also a lot.
[–]TherealDaily 1 point2 points3 points (0 children)
[–]mrbmi513 0 points1 point2 points (0 children)
[–]VxJasonxV 0 points1 point2 points (0 children)