Quantcast
Channel: git reset asks 'more?' - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by me_and for git reset asks 'more?'

$
0
0

Your shell is interpreting the ^ symbol as a line continuation symbol. Either just avoid using ^ as Adamsuggests:

git reset --soft HEAD~1

or quote the argument so the shell doesn't attempt to interpret it (I'm not sure exactly which shell you're using, but I'd be surprised if this doesn't work):

git reset --soft "HEAD^"

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>