<div dir="auto">If you want to skip the git pull, you can also do this:</div><div dir="auto"><br></div><div dir="auto">git fetch</div><div dir="auto">git reset --hard origin/master</div><div dir="auto"><br></div><div dir="auto">... assuming your origin is called &quot;origin&quot;, which is the default, and that the branch in question is called &quot;master.&quot; Note that this will set the current branch to whatever &quot;master&quot; is on origin, so use git checkout first if you&#39;re not on the right branch.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 4, 2020 at 2:35 PM Dan Coutu &lt;<a href="mailto:coutu@snowy-owl.com">coutu@snowy-owl.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Bruce, there’s more than one way to do it. Of course. <br>
<br>
If you have not done a git commit of your changes then you can use ‘git stash’ to save your changes in the stash.<br>
<br>
If you have made commits, and your commits are up to date, then skip doing things with the stash.<br>
<br>
 If you want to have your changes available for later tinkering then make a branch at this point, checkout the branch, and apply your stash to it. So assuming you choose to name your branch mysandbox:<br>
<br>
        git branch mysandbox<br>
        git checkout my sandbox<br>
        git stash apply<br>
<br>
Checkout master to get back to the main branch (assuming that it is called master):<br>
<br>
        git checkout master<br>
<br>
You can then revert the files to the original clone of the repo like this:<br>
<br>
        git reset —hard HEAD<br>
<br>
Then do a <br>
<br>
        git pull<br>
<br>
To update your repo. That should get you where you want to be.<br>
<br>
I hope this helps!<br>
<br>
Dan<br>
<br>
&gt; On Nov 4, 2020, at 1:43 PM, Bruce Labitt &lt;<a href="mailto:bruce.labitt@myfairpoint.net" target="_blank">bruce.labitt@myfairpoint.net</a>&gt; wrote:<br>
&gt; <br>
&gt; Guys &amp; Gals, sorry for the elementary question.<br>
&gt; <br>
&gt; I have cloned a project that I am interested.  Along the way, I fiddled <br>
&gt; with setting, mostly debug, but none of my changes are important.  I&#39;ve <br>
&gt; built the project and am using it.  I&#39;d like to re download it from the <br>
&gt; repo again, abandoning any changes that I have made.  A different person <br>
&gt; has merged some changes and I want to try them.<br>
&gt; <br>
&gt; What is the best way to accomplish this?  My head spins with all the <br>
&gt; pushing and pulling.  For some reason I am loath to nuke everything and <br>
&gt; start over again.  Is there a slightly more graceful way to do this in <br>
&gt; git without nuking?<br>
&gt; <br>
&gt; github&#39;s man area is not illuminating, instead they talk about all sorts <br>
&gt; of corner case things rather than something this basic.<br>
&gt; <br>
&gt; Thanks all.<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; gnhlug-discuss mailing list<br>
&gt; <a href="mailto:gnhlug-discuss@mail.gnhlug.org" target="_blank">gnhlug-discuss@mail.gnhlug.org</a><br>
&gt; <a href="http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/" rel="noreferrer" target="_blank">http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/</a><br>
<br>
<br>
_______________________________________________<br>
gnhlug-discuss mailing list<br>
<a href="mailto:gnhlug-discuss@mail.gnhlug.org" target="_blank">gnhlug-discuss@mail.gnhlug.org</a><br>
<a href="http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/" rel="noreferrer" target="_blank">http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>David Berube<br>Berube Consulting<br><a href="http://berubeconsulting.com" target="_blank">http://berubeconsulting.com</a><br>P.O Box 1746<br>Concord, NH 03302<br>United States<br>Tel: (603) 574-4766</div></div></div>