Actually i am a beginner in using github.
so here is my question.when i try to show commits in github i have a problem,so before adding the modification when i run git status
i not only get the modifications inside the file as changes modified but also the total file as modified. for eg:
user@ubuntu:~/folder$ git status -s
M path/to/file
M path/to/file~
so due to this when i commit my commits show 2 changes instead of just one change but this is not the actual problem as i can solve this by giving git add path/to/file
and commiting.
But when i try to show changes in a macro level how i can i solve this problem???
For eg: if i edit 50 documents in my repo which already exist,how can i just add the changes in the documets and not the whole document including the changes as 2 separate changes in my commit history?
I add link to an example commit for more clarification if needed. Example Commit Click Here
Hope I have clearly explained my doubt. I would be more thankful if u clear my doubt step by step.