<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 21, 2015 at 8:35 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi<div><br></div><div>At some point in time I would like someone to help me with GIT.</div><div>I find this confusing which is probably confusing to you.</div><div><br></div><div>I work on a feature, figure out a bug, when trying to fix this I am</div><div>getting my branches confused,</div></div></blockquote><div><br></div><div>Try to use a git-helper for bash or zsh, I use oh-my-zsh, see how pretty my git things are:<br><br></div><div>tomaz@naboo - subsurface (master) : $ git checkout cmake_fixes<br>tomaz@naboo - subsurface (cmake_fixes) : $ <br><br></div><div>See? my terminal gives me my current branch all the time, this helps a lot.<br><br></div><div>So, back to your real problem:<br><br></div><div>You are working on a feature X, let's call it tomaz_is_braindead and then you found a bug that is on master<br><br>guido@guidoland - subsurface (tomaz_is_braindead) : $ git checkout master<br>guido@guidoland - subsurface (master) : $ git checkout -b fix_tomaz_bug<br>guido@guidoland - subsurface (fix_tomaz_bug) : $ git checkout -b fix_tomaz_bug<br><br></div><div>work work work<br><br>guido@guidoland - subsurface (fix_tomaz_bug) : $ git commit -a -s<br>guido@guidoland - subsurface (fix_tomaz_bug) : $ git format-patch master<br><br></div><div>send the code you create to the ML<br><br>guido@guidoland - subsurface (fix_tomaz_bug) : $ git checkout tomaz_is_braindead (your original branch)<br><br></div><div>continue working happly knowing that you fixed a bug that is already in review, and try to avoid it on your current branch.<br><br></div><div>at least, this is how I work.<br></div><div><br></div><div>and then you found a bug on the code that is on master:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div> ending up in wiping it all away,</div><div>clone subsurface, building branches, reapplying patches etc.</div><div><br></div><div>It can't be that difficult ... I read the FM and this didn't help.</div><div><br></div><div>I have no GIT-brain ... and lost many hours of dev. time to this :-(<span class=""><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>