title: How to save my progress from a public repo to my private repo?
body: <p>I have been working on a series of exercises from a popular GitHub repository.
  But unfortunately I have <code>committed my answers</code> to the <code>main</code> branch of <code>their repository</code>. I should have cloned their repository first and then committed my changes to the cloned repository. Both of these are on GitHub.</p>
  <p>Do I have a way to do this?: I don't want to loose my progress and redo the exercises, but more importantly <strong>I want to preserve the timestamps associated with my commits</strong>. I want to commit the answers to my clone (which is to be created) and then push the already committed commits to it.</p>
  <p>All of guides/solutions to similar problems started with the clone first and then</p>
  <p>Here is what I have done:</p>
  <pre class="lang-sh prettyprint-override"><code>$ git clone repo_of_exercises.git
  
  &lt; Solved many exercises and I have a commit message for each exercise &gt;
  $ git add &lt;solution to an exercise&gt;
  $ git commit -m &quot;&lt;Appropriate commit message&gt;&quot;
  &lt; Note that I have not pushed these changes, it's all on my computer &gt;
  </code></pre>
  <p>What are the next steps that I should take to copy all of commits to a clone that I will create soon?</p>