سؤال

I am new to git, so question might be very easy, that what is the difference between git reset --hard HEAD and git reset --hard?

هل كانت مفيدة؟

المحلول

HEAD is implied when you do not specify that argument.

However, you could do e.g. git reset --hard HEAD^ to nuke the commit at HEAD, i.e. undo it in a way that rewrites history.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top