0 votes
1 view
ago in Devops and Agile by (3.1k points)

What's the simplest way to undo the

git reset HEAD~

command? Currently, the only way I can think of is doing a "git clone http://..." from a remote repo.

1 Answer

0 votes
ago by (4.7k points)

Since you are looking for a simple way of doing so, here's what I can suggest.

git reset 'HEAD@{1}'

...