3

I just did a huge commit and when I push it, I get this error:

RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 10054

I believe I get this error because my commit is too big to push, so I want to try smaller commits, but first I need to undo the current commit. My question is how do I do that in Visual Studio Team Explorer? Here is a screenshot, do I want to Reset and Keep changes? I don't want to do anything to mess up or lose code.

enter image description here

Shridhar R Kulkarni
  • 6,653
  • 3
  • 37
  • 57
user979331
  • 11,039
  • 73
  • 223
  • 418

1 Answers1

3

To reset HEAD back one commit and keep the changes so you can break it up into smaller commits, choose "Reset and Keep Changes (--mixed)". This runs "git reset --mixed" on the command line, which moves the HEAD ref but leaves the workdir alone. Therefore all of your changed files will appear in the Changes page.

The other option (--hard), will reset both the HEAD ref and update the workdir to match the repository at that commit. This would discard your changes.

To clarify, you'll want to view history for your branch and choose reset on the commit just before your new commit. In other words, you are resetting HEAD to that parent commit, but leaving the workdir matching your current commit. This will result in all changes in that commit being available in the workdir for subdivision into new commits.

Hope this helps.

Chad B
  • 1,416
  • 9
  • 12