<div dir="ltr"><div><div>I thought that he was developing his robot code with his robot buddies. ;-)<br><br></div>I'm working on a project now with me and another guy and we choose to do pull requests (even though I don't really have to) cause it lets the other(s) know what you are merging and why. Better communication.<br><br></div>If it's just you, no need for pull requests, or even branches really. Just commit and push everything to the master branch.  That's the way I did it before I got help.<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 29, 2015 at 7:23 AM, cyberdork33 <span dir="ltr"><<a href="mailto:cyberdork33@gmail.com" target="_blank">cyberdork33@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">John has the typical workflow, except I would say that you only need the pull request if you are trying to merge changes into a repo that is controlled by someone else, not your own repo (unless I am missing something there.) I think the key here is that you only need one remote repository. Create a branch and work within that branch until you have a code unit that is ready to merge into the master branch. Then merge and push to the server. This keeps the published code clean even while you are working on a new additions.<br>
<div class="HOEnZb"><div class="h5"><br>
> On Sep 28, 2015, at 11:49 PM, Michael W. Hall <<a href="mailto:hallmw@att.net">hallmw@att.net</a>> wrote:<br>
><br>
> Think I have it now.  I created the repository.  Cloned the new FTC to<br>
> my machine.  Copied the code I had in ftc_app to FTC.  I did a git add<br>
> *.  Then I did a git commit.  I just did a git push origin master and it<br>
> appears to be working.<br>
><br>
><br>
> On Mon, 2015-09-28 at 23:24 -0500, John Price wrote:<br>
>> Typical process:<br>
>><br>
>> checkout the master branch.<br>
>> create a new branch with changes you plan to make<br>
>> make some changes, commit, repeat.<br>
>> "push" the commits to the remote, creating a new branch on the remote,<br>
>> typically with the same name as you local branch (i.e. origin/branch)<br>
>> create a pull request (on the website) that merges your branch into the<br>
>> master.<br>
>> merge the pull request (on the website)<br>
>> repeat from the top<br>
>><br>
>> Useful command:<br>
>> git log --graph --oneline --decorate --all<br>
>><br>
>> This lets you see the commit graph.  take note of HEAD, master, and<br>
>> origin/master.  Before you start working you probably want all those to be<br>
>> pointing to the same branch (or at least be aware of where they are<br>
>> pointing).<br>
>><br>
>><br>
>><br>
>> On Mon, Sep 28, 2015 at 11:06 PM, Michael W. Hall <<a href="mailto:hallmw@att.net">hallmw@att.net</a>> wrote:<br>
>><br>
>>> Not sure that is what I want.  I think that will notify the developers<br>
>>> of the SDK about reviewing my changes.  Our changes are just for our<br>
>>> robot.<br>
>>><br>
>>> The ftc_app is a fork of the SDK that qualcomm developed, for the<br>
>>> different robot teams to use, to write java code to control there<br>
>>> robots.<br>
>>><br>
>>> On Mon, 2015-09-28 at 22:00 -0500, John Price wrote:<br>
>>>> Create a pull request:<br>
>>> <a href="https://help.github.com/articles/using-pull-requests/" rel="noreferrer" target="_blank">https://help.github.com/articles/using-pull-requests/</a><br>
>>>><br>
>>>><br>
>>>><br>
>>>> On Mon, Sep 28, 2015 at 9:26 PM, Michael W. Hall <<a href="mailto:hallmw@att.net">hallmw@att.net</a>> wrote:<br>
>>>><br>
>>>>> I setup a Github account for our robotics team.  I created a repository<br>
>>>>> [my_github_accoun]/FTC.  I forked the robotics sdk into<br>
>>>>> [my_github_accoun]/ftc_app.  I then cloned that on my machine and made<br>
>>>>> some changes and pushed those changes back to<br>
>>>>> [my_github_accoun]/ftc_app.  I would like to put the changes into<br>
>>>>> [my_github_accoun]/FTC which I created through the Github web<br>
>>> interface.<br>
>>>>><br>
>>>>> I am using android studio.  Could someone tell me how to accomplish<br>
>>>>> this?  I am new to using Github.  I have use git on my local machine<br>
>>> but<br>
>>>>> this is new to me.  TIA.<br>
>>>>><br>
>>>>> Michael<br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> LUNA mailing list<br>
>>>>> <a href="mailto:LUNA@lunagroup.us">LUNA@lunagroup.us</a><br>
>>>>> <a href="http://lunagroup.us/mailman/listinfo/luna" rel="noreferrer" target="_blank">http://lunagroup.us/mailman/listinfo/luna</a><br>
>>>>><br>
>>>> -------------- next part --------------<br>
>>>> An HTML attachment was scrubbed...<br>
>>>> URL: <<br>
>>> <a href="http://lunagroup.us/pipermail/luna/attachments/20150928/06fabc5c/attachment.html" rel="noreferrer" target="_blank">http://lunagroup.us/pipermail/luna/attachments/20150928/06fabc5c/attachment.html</a><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> LUNA mailing list<br>
>>>> <a href="mailto:LUNA@lunagroup.us">LUNA@lunagroup.us</a><br>
>>>> <a href="http://lunagroup.us/mailman/listinfo/luna" rel="noreferrer" target="_blank">http://lunagroup.us/mailman/listinfo/luna</a><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> LUNA mailing list<br>
>>> <a href="mailto:LUNA@lunagroup.us">LUNA@lunagroup.us</a><br>
>>> <a href="http://lunagroup.us/mailman/listinfo/luna" rel="noreferrer" target="_blank">http://lunagroup.us/mailman/listinfo/luna</a><br>
>>><br>
>> -------------- next part --------------<br>
>> An HTML attachment was scrubbed...<br>
>> URL: <<a href="http://lunagroup.us/pipermail/luna/attachments/20150928/028e8a2b/attachment.html" rel="noreferrer" target="_blank">http://lunagroup.us/pipermail/luna/attachments/20150928/028e8a2b/attachment.html</a>><br>
>> _______________________________________________<br>
>> LUNA mailing list<br>
>> <a href="mailto:LUNA@lunagroup.us">LUNA@lunagroup.us</a><br>
>> <a href="http://lunagroup.us/mailman/listinfo/luna" rel="noreferrer" target="_blank">http://lunagroup.us/mailman/listinfo/luna</a><br>
><br>
><br>
> _______________________________________________<br>
> LUNA mailing list<br>
> <a href="mailto:LUNA@lunagroup.us">LUNA@lunagroup.us</a><br>
> <a href="http://lunagroup.us/mailman/listinfo/luna" rel="noreferrer" target="_blank">http://lunagroup.us/mailman/listinfo/luna</a><br>
<br>
_______________________________________________<br>
LUNA mailing list<br>
<a href="mailto:LUNA@lunagroup.us">LUNA@lunagroup.us</a><br>
<a href="http://lunagroup.us/mailman/listinfo/luna" rel="noreferrer" target="_blank">http://lunagroup.us/mailman/listinfo/luna</a><br>
</div></div></blockquote></div><br></div>