I have local repository setup with 2 branches master and sandbox.
I made changes on sandbox:
1. Changes for the working version and,
2. Changes to get the version working on my Windows machine.
I committed the changes separately, first 1 then 2.
I then merged the master branch with the sandbox branch.
Now because I wanted to ignore change set 2 (changes to get working on Windows), I created a .gitignore with the following content.
$ cat .gitignore
#changed for local
conn.php
.htaccess
I then pushed the master branch to the remote master on GitHub, but now looking at the last 2 commits they are local machine development envonment changes (2).
And, I created my .gitignore with notepad++ but it is not hidden and looks like a textfile.
So, I would like to undo the last 2 commits on the github remote repository.