0

Coming from an SVN environment so Git is pretty foreign thus far.

me@www:/var/www/$ git --version
git version 2.17.1

It's just me on these servers and in this Git environment. I cloned from another local server. I've been writing code, committing and pushing. I wanted to change the comment for the last pushed commit. I read to use the following commands:

git commit --amend

I entered the new message and saved. I then...

git push origin master --force

Now only my last, updated commit appears in Git. I believe I read that all the previous information is still there - it's simply not displayed but at some point it will be garbage collected. I've been looking through the various git shell tools and man pages but I'm not sure what to do without further screwing this up. How can I restore the history?

I appreciate your help, thank you.

user1801810
  • 584
  • 7
  • 25

0 Answers0