Going back to previous GIT commit without forking
<p>I have the following Git log.  I wish to go back to <code>2c2996639ec10d659a771c4398759deb323eb08c</code> 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.</p>

<p>So I suppose I could do something like:</p>

<pre><code>git checkout 2c2996639ec10d659a771c4398759deb323eb08c
</code></pre>

<p>But if I do so, what will happen when I later push it to the repository?</p>

<pre><code>[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 &lt;example@gmail.com&gt;
Date:   Thu Feb 4 05:20:31 2016 -0800

    changed to using account to links

commit 2c2996639ec10d659a771c4398759deb323eb08c
Author: Michael Smith &lt;example@gmail.com&gt;
Date:   Mon Feb 1 07:48:20 2016 -0800

    Finished implementation of new projects

......
......

commit 0ad8e4a14f01ccb964b945afaafe98f14f478f98
Author: Michael Smith &lt;example@gmail.com&gt;
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 &lt;example@gmail.com&gt;
Date:   Mon Apr 21 00:55:52 2014 -0700

    Initial commit
[Michael@devserver testing]$ git log
</code></pre>