Every once in a while, I use a test branch for experimentation... I can commit the experimental branch, checkout the previous branch, and then delete the experimental branch...
I am looking for a way to simply abandon the experimental branch when I am done with it... I figured just swapping branches would abandon the changes, but this actually keeps all of the new files, even after changing branches. The only way I have right now to make this work is the three-step process I listed above...
I have read the Git documentation a few times now, so I am thinking there may be a way to use the 'Rebase' command to make this work? I will appreciate getting pointed in the right direction on this one.