<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 18, 2013 at 2:41 PM, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com" target="_blank">newshound2@digitalmars.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I often struggle with understanding how github works. <br>
<br>
<br>
</blockquote></div><br></div><div class="gmail_extra">github or git?  In any case, have you tried setting up a local and a remote on your local system to try out the commands without the fear of ruining your working repo?  You can set up a local and remote on your local computer, and push and pull from them in the same way you do with your local repo and github.  Example:<br>

<br></div><div class="gmail_extra">mkdir test<br></div><div class="gmail_extra">cd test<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">git init local_repo<br></div><div class="gmail_extra">cd local_repo<br>

</div><div class="gmail_extra">... add files, commit, etc.<br><br>cd ../test<br>git clone --bare local_repo/ remote_repo<br><br></div><div class="gmail_extra">cd ../local_repo<br></div><div class="gmail_extra">git remote add origin ../remote_repo<br>

</div><div class="gmail_extra">... add more changes and commit<br></div><div class="gmail_extra">git push origin master<br><br></div><div class="gmail_extra">Note, to be able to push, that repo needs to be bare.  You can also add a dummy linux user to your local system to play the role of a contributor.<br>
<br></div><div class="gmail_extra">Using this kind of setup really helped me understand git better.<br><br></div><div class="gmail_extra">Alren<br></div></div>