[git-users] Reverting to previous state of git repository

2015-09-27 Thread Raghu K
Using some online code I have created a python tool that outputs fancy status for any given directory if a pull is needed, push is needed or commit is needed. I am writing unit tests for each of these statuses. In order to write the unit test (without new pushed changes) for a pull status I woul

Re: [git-users] Reverting to previous state of git repository

2015-09-27 Thread Gergely Polonkai
Hello, you will need to reset the branch: git reset SHA Best, Gergely On 28 Sep 2015 05:27, "Raghu K" wrote: > Using some online code I have created a python tool that outputs fancy > status for any given directory if > a pull is needed, push is needed or commit is needed. > > I am writing unit

[git-users] Spacing changes and applying patches/diffs

2015-09-27 Thread Michael
So how do you deal with patches that are mostly wrecked by spacing changes? I've got a couple of files that, in the course of going from point A to point B, had tabs replaced with spaces. There's some minor edits, and a lot of additions, as shown by "git diff -b" The problem? I'm on a debugging