I have the following Git log. I wish to go back to 2c2996639ec10d659a771c4398759deb323eb08c
which is one before the branch master. I wish to keep a history, however, of the last commit in the repository. Lastly, I don't wish to create a fork, but just want one branch.
So I suppose I could do something like:
git checkout 2c2996639ec10d659a771c4398759deb323eb08c
But if I do so, what will happen when I later push it to the repository?
[Michael@devserver testing]$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 43 commits.
#
nothing to commit (working directory clean)
[Michael@devserver testing]$ git log
commit 0fb5d27e1bc57b120e0f361f8f71a947bb264448
Author: Michael Smith <example@gmail.com>
Date: Thu Feb 4 05:20:31 2016 -0800
changed to using account to links
commit 2c2996639ec10d659a771c4398759deb323eb08c
Author: Michael Smith <example@gmail.com>
Date: Mon Feb 1 07:48:20 2016 -0800
Finished implementation of new projects
......
......
commit 0ad8e4a14f01ccb964b945afaafe98f14f478f98
Author: Michael Smith <example@gmail.com>
Date: Wed Apr 23 06:21:04 2014 -0700
Changed link locations to reflect changing /lib/plugins to /lib/plugins_3rd and /lib/plugins_my to /lib/plugins
commit dde33715730c58f100c180d6871251baef0d25ea
Author: Michael Smith <example@gmail.com>
Date: Mon Apr 21 00:55:52 2014 -0700
Initial commit
[Michael@devserver testing]$ git log