<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 3, 2015 at 1:51 PM, Guido Lerch <span dir="ltr"><<a href="mailto:guido.lerch@gmail.com" target="_blank">guido.lerch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>I am new to GIT.</div><div><br></div><div>I have read the contribution document that Dirk has pointed me to but are hesitant</div><div>to actually commit anything because I don't want to mess something up or lose my</div><div>changes.</div><div><br></div><div>Here is what I did so far ...</div><div>1. got a master by "git checkout master", "git pull"</div><div>2. created a branch called "uemis-develop"</div><div><br></div><div>My master is pretty old, 2-3 weeks.</div><div><br></div><div>Here are some questions</div><div>1. how can I get a new master and then merge my changes into it without affecting anything except my local repository</div></div></blockquote><div><br></div><div>you don't need to get a new master, don't worry: you will never affect anything except your local repository.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>2. Does anyone have a quick guide for dummies so I get a quick start that is save ?</div></div></blockquote><div><br></div><div>tons, but I think they all are pretty hard to learn.<br></div><div><br>1 - don't be afraid of losing your work, even if you do things in a wrong way there are ways to revert that.<br></div><div>2 - get a git helper for bash or zsh ( I use oh-my-zsh to help me on git, by completting commands and always showing the current branch I'm on )<br><br></div><div>since your master is pretty old here is what you should do from time to time:<br></div><div>0 - save your work ( git commit ) or store it on the stash temporarely ( git stash )<br></div><div>1 - go back to master (  git checkout master )<br></div><div>2 - update master to the latest commit on the remote repository ( git pull origin master )<br></div><div>3 - go back to your work branch ( git checkout uemis-develop )<br></div><div>4 - try to merge master on your work ( and not the opposite ) - git rebase master (remember, you are on your local branch )<br></div><div>5 - fix any conflicts that happen ( git will show you all the files that have conflicts by running git status )<br></div><div>6 - continue your work happly on top of the current master, in your local branch.<br></div><div>7 - as soon as your work is done ( finished what you should do on that branch ), folow 0 - 6 again to reply your work on top of the most current master<br></div><div>8 - run git format-patch master, this will generate all commits in form of a batch of patches.<br></div><div>9 - send us those patches via e-mail.<br><br></div><div>I think this covers mostly a newbie use of git. :)<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks for supporting a newbie.<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Best regards,<div>Guido</div></div></div>
</font></span></div></div>
<br>_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
<br></blockquote></div><br></div></div>