I have rolled back already using this command git reset --hard HEAD^ to some previous commit, all I want to do is rollforward I know this isn’t the correct term to what would be my commit that I did latest. Whats happening is a bunch of files were deleted when I used that command and now I don’t know how to get back. I am using github is there a way to just pull down from github and overwrite the current directory?
I have rolled back already using this command git reset –hard HEAD^ to some
Share
Looking at your question, the commit you want to retrieve is the current one on the
masterbranch of the GitHub repo, you have to do the followingWARNING this will erase all uncommitted modifications that you could have made since you rolled back on
HEAD^.Before, you might want to do
To make sure you’ve got the latest changes from the GitHub repo.