Have you been frustrated by the default window shell settings of Git Bash under Windows? I have. Changing the settings of the Git Bash window directly using properties does not work. Today it bugged me enough that I decided to spend some time to fix it. Continue reading
Okay I just deleted a feature branch before merging it back into the development branch. What to do? Lucky I had already committed the changes to the feature branch which made recovery very simple. Continue reading
In my previous post on how to quickly view all the changes between two branches in Git I ended with the statement “Is there away to do the same in Eclipse with EGit?“. I Googled around for the answer a bit, but with no success. By accident I just discovered how to compare the working version of a file to the commited version. Not entirely the same, but getting closer 🙂 For the purpose of being able to quickly check what changes I have made to write meaningful commit messages this is sufficient for me.
Anyway, these are the steps:
- Open Git Staging (Window > Show view > Git > Git Staging)
- Double click on a file in “Unstaged Changes” or “Staged Changes”
And voilà! There is a beautiful window with a side to side diff of the working version and commited version. Nice! I hope this is useful.
I was commiting some changes in Git and needed to view all the changes between, so that I could write a meaningful commit message. I used the following command to view the changes in each changed file:
git difftool -v development
This command is viewing the active branch (checked out branch) with the development branch. It will open the changed files one by one.
Is there away to do the same in Eclipse with EGit?