I got two branches A, B.
In branch A, I added a file called a.py and consists:
import os
import math
I added and committed the file (and pushed to remote).
Than I created another branch, B like that:
git checkout -b B
in Branch B I added another file and added, committed and pushed it.
I also changed a.py to be like that:
import os
import sys
After that I also added 7 files and pushed them (in B).
Now, I regret and I want to keep the: import math
by marging A to B without losing all my older commits. Only change back (but not manually) the import math back.
When I just use the IDE to merge A to B it says already up to date
but it is not true because in A I have import math
and in B I have import sys
.
How can I fix it?
I'm afraid to lose all my job.
Thanks in advance.