TL;DR
As described in this post, I changed a TFS changeset comment. How can I get this to be reflected in the corresponding Git commit in my local Git repository, using Git-Tfs?
Verbose version
I'm a Git-Tfs user. My workflow is such that I try to commit extremely small increments of code to my local Git repository ("one line change—tests green—commit" sort of thing) and push it up to the TFS server once I have a meaningful (but hopefully still small) changeset. Often this is after just one Git commit, but sometimes it is after several.
When checking several Git commits into TFS at once, Git-Tfs combines the Git commit messages as the default TFS check-in comment. So far so good. I usually tamper with them to make them a read more smoothly as a single changeset comment. But today I forgot to and checked in a message that would have been less than helpful to my TFS-using coworkers.
Okay, no big deal. I used TFS to edit the changeset comment to make it more coherent. However, I have not been able to get my local Git repository synced up with this change. This is not a big deal, because mainly I changed it for other people. However, I am curious to see if I can get it synced up.
What I've tried
I tried this, but the commit message is still what it was before I edited the changeset comment:
git reset --hard HEAD~
git tfs pull