You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@edgent.apache.org by Susan Cline <ho...@pacbell.net> on 2016/03/15 22:49:01 UTC

Setting up my environment as a committer for the new github repository

Hi,

I’ve been having a problem getting setup with git-hub.

I’m trying to start from scratch making a fork and creating a clone.  Here are the commands I’ve attempted so far with no success:

Created a fork at this URL:

https://github.com/apache/incubator-quarks <https://github.com/apache/incubator-quarks>

Then I went to my fork and got this URL from the web ui:

https://github.com/home4slc/incubator-quarks.git

Now, I tried these commands from the command line:

git clone https://github.com/home4slc/incubator-quarks.git

git remote add apache https://git-wip-us-apache.org/repos/asf/incubator-quarks.git

Susans-MacBook-Pro-247:incubator-quarks susancline$ git remote -v
apache	https://git-wip-us-apache.org/repos/asf/incubator-quarks.git (fetch)
apache	https://git-wip-us-apache.org/repos/asf/incubator-quarks.git (push)
origin	https://github.com/home4slc/incubator-quarks.git (fetch)
origin	https://github.com/home4slc/incubator-quarks.git (push)

Susans-MacBook-Pro-247:incubator-quarks susancline$ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master’.

Susans-MacBook-Pro-247:incubator-quarks susancline$ git fetch apache
fatal: unable to access 'https://git-wip-us-apache.org/repos/asf/incubator-quarks.git/': Could not resolve host: git-wip-us-apache.org
Susans-MacBook-Pro-247:incubator-quarks susancline$ 


Anyone have any thoughts about what is happening?

Thanks,

Susan

Re: Setting up my environment as a committer for the new github repository

Posted by Dan Debrunner <dj...@debrunners.com>.
On Tuesday, March 15, 2016 3:47 PM, Susan Cline <ho...@pacbell.net> wrote:

>I was just trying to set up my local git repo for development.  I changed it to this:
>
>
>Susans-MacBook-Pro-247:incubator-quarks susancline$ git remote -v
>originhttps://github.com/home4slc/incubator-quarks.git (fetch)
>originhttps://github.com/home4slc/incubator-quarks.git (push)
>upstreamhttps://github.com/apache/incubator-quarks.git (fetch)
>upstreamhttps://github.com/apache/incubator-quarks.git (push)


Right, a clone of your github fork from the ASF github mirror for development has no need for a remote that points at the actual ASF repo.

Dan.

Re: Setting up my environment as a committer for the new github repository

Posted by Dan Debrunner <dj...@debrunners.com>.
> On Tuesday, March 15, 2016 5:46 PM, Susan Cline <ho...@pacbell.net> wrote:


> 
> http://mail-archives.apache.org/mod_mbox/incubator-quarks-dev/201603.mbox/%3c1633289677.553519.1457733763078.JavaMail.yahoo@mail.yahoo.com%3e 
> <http://mail-archives.apache.org/mod_mbox/incubator-quarks-dev/201603.mbox/%3C1633289677.553519.1457733763078.JavaMail.yahoo@mail.yahoo.com%3E>
> 
> Is this the process that committers use to merge their own pull requests, or 
> just for other folks pull requests?

All pull requests use the same process, regardless of who created them.

Dan.

Re: Setting up my environment as a committer for the new github repository

Posted by Susan Cline <ho...@pacbell.net>.
Oops, you’re right.  That worked following the instructions here after I added my keys to my GitHub account and used the correct pull request number, not the JIRA number.

http://mail-archives.apache.org/mod_mbox/incubator-quarks-dev/201603.mbox/%3c1633289677.553519.1457733763078.JavaMail.yahoo@mail.yahoo.com%3e <http://mail-archives.apache.org/mod_mbox/incubator-quarks-dev/201603.mbox/%3C1633289677.553519.1457733763078.JavaMail.yahoo@mail.yahoo.com%3E>

Is this the process that committers use to merge their own pull requests, or just for other folks pull requests?

Susan


> On Mar 15, 2016, at 5:25 PM, Katherine Marsden <km...@apache.org> wrote:
> 
> On 3/15/2016 5:13 PM, Susan Cline wrote:
>> Thanks.. now I got past that error, but it is still not working on this part:
>> 
>> git fetch mirror pull/29/head:pr-29
>> fatal: Couldn't find remote ref pull/29/head
> I think Quarks-29 is pull request 12.
> so
> git fetch mirror pull/12/head:pr-12
> 


Re: Setting up my environment as a committer for the new github repository

Posted by Katherine Marsden <km...@apache.org>.
On 3/15/2016 5:13 PM, Susan Cline wrote:
> Thanks.. now I got past that error, but it is still not working on this part:
>
> git fetch mirror pull/29/head:pr-29
> fatal: Couldn't find remote ref pull/29/head
I think Quarks-29 is pull request 12.
so
git fetch mirror pull/12/head:pr-12


Re: Setting up my environment as a committer for the new github repository

Posted by Susan Cline <ho...@pacbell.net>.
Thanks.. now I got past that error, but it is still not working on this part:

git fetch mirror pull/29/head:pr-29
fatal: Couldn't find remote ref pull/29/head

$ git remote -v
mirror	git@github.com:apache/incubator-quarks.git (fetch)
mirror	git@github.com:apache/incubator-quarks.git (push)
origin	https://git-wip-us.apache.org/repos/asf/incubator-quarks.git (fetch)
origin	https://git-wip-us.apache.org/repos/asf/incubator-quarks.git (push)

Susan
> On Mar 15, 2016, at 4:48 PM, Katherine Marsden <km...@apache.org> wrote:
> 
> On 3/15/2016 4:07 PM, Susan Cline wrote:
>> Now I am trying to do a merge for a pull-request, following the information posted here:
>> 
>> http://mail-archives.apache.org/mod_mbox/incubator-quarks-dev/201603.mbox/%3c1633289677.553519.1457733763078.JavaMail.yahoo@mail.yahoo.com%3e
>> 
>> I did this:
>> 
>> mkdir git_wip_apache
>> git clone https://git-wip-us.apache.org/repos/asf/incubator-quarks.git
>> git remote add mirror git@github.com:apache/incubator-quarks.git
>> git fetch mirror pull/29/head:pr-29
>> Permission denied (publickey).
>> fatal: Could not read from remote repository.
>> 
>> Please make sure you have the correct access rights
>> and the repository exists.
>> 
>> The error is mentioning something about the keys, I did do this earlier today:
>> 
>>  eval "$(ssh-agent -s)"
>>  ssh-add ~/.ssh/id_rsa
>>  ssh-keygen -t rsa -b 4096 -C "home4slc@apache.org”
> I had to put the contents of ~/.ssh/id_rsa.pub in the ssh keys section of my github settings to get past the publickey error.
> 
> HTH
> 
> Kathey


Re: Setting up my environment as a committer for the new github repository

Posted by Katherine Marsden <km...@apache.org>.
On 3/15/2016 4:07 PM, Susan Cline wrote:
> Now I am trying to do a merge for a pull-request, following the information posted here:
>
> http://mail-archives.apache.org/mod_mbox/incubator-quarks-dev/201603.mbox/%3c1633289677.553519.1457733763078.JavaMail.yahoo@mail.yahoo.com%3e
>
> I did this:
>
> mkdir git_wip_apache
> git clone https://git-wip-us.apache.org/repos/asf/incubator-quarks.git
> git remote add mirror git@github.com:apache/incubator-quarks.git
> git fetch mirror pull/29/head:pr-29
> Permission denied (publickey).
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
>
> The error is mentioning something about the keys, I did do this earlier today:
>
>   eval "$(ssh-agent -s)"
>   ssh-add ~/.ssh/id_rsa
>   ssh-keygen -t rsa -b 4096 -C "home4slc@apache.org”
I had to put the contents of ~/.ssh/id_rsa.pub in the ssh keys section 
of my github settings to get past the publickey error.

HTH

Kathey

Re: Setting up my environment as a committer for the new github repository

Posted by Susan Cline <ho...@pacbell.net>.
Now I am trying to do a merge for a pull-request, following the information posted here:

http://mail-archives.apache.org/mod_mbox/incubator-quarks-dev/201603.mbox/%3c1633289677.553519.1457733763078.JavaMail.yahoo@mail.yahoo.com%3e

I did this:

mkdir git_wip_apache
git clone https://git-wip-us.apache.org/repos/asf/incubator-quarks.git
git remote add mirror git@github.com:apache/incubator-quarks.git
git fetch mirror pull/29/head:pr-29
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

The error is mentioning something about the keys, I did do this earlier today:

 eval "$(ssh-agent -s)"
 ssh-add ~/.ssh/id_rsa
 ssh-keygen -t rsa -b 4096 -C "home4slc@apache.org”

Susan
> On Mar 15, 2016, at 3:45 PM, Susan Cline <ho...@pacbell.net> wrote:
> 
> I was just trying to set up my local git repo for development.  I changed it to this:
> 
> Susans-MacBook-Pro-247:incubator-quarks susancline$ git remote -v
> origin	https://github.com/home4slc/incubator-quarks.git (fetch)
> origin	https://github.com/home4slc/incubator-quarks.git (push)
> upstream	https://github.com/apache/incubator-quarks.git (fetch)
> upstream	https://github.com/apache/incubator-quarks.git (push)
> 
> and then I got this problem:
> 
> Username for 'https://github.com': home4slc@apache.org
> Password for 'https://home4slc@apache.org@github.com': 
> remote: Invalid username or password.
> fatal: Authentication failed for 'https://github.com/home4slc/incubator-quarks.git/'
> 
> After that I went into my github account here:
> 
> https://github.com/home4slc/incubator-quarks
> 
> and modified my password to be what it is in my ~/.netrc file.
> 
> Now things are working and I’ll forge on to a pull request.
> 
> Susan
> 
>> On Mar 15, 2016, at 3:33 PM, Dan Debrunner <dj...@debrunners.com> wrote:
>> 
>> 
>> 
>>> On Tuesday, March 15, 2016 2:49 PM, Susan Cline <ho...@pacbell.net> wrote:
>>>> Hi,
>>> 
>>> I’ve been having a problem getting setup with git-hub.
>>> 
>>> I’m trying to start from scratch making a fork and creating a clone.  Here are 
>>> the commands I’ve attempted so far with no success:
>> 
>> 
>> What are you trying to do?
>> 
>> Use a local git repo for development or for merging pull-requests?
>> 
>> Dan.
> 


Re: Setting up my environment as a committer for the new github repository

Posted by Susan Cline <ho...@pacbell.net>.
I was just trying to set up my local git repo for development.  I changed it to this:

Susans-MacBook-Pro-247:incubator-quarks susancline$ git remote -v
origin	https://github.com/home4slc/incubator-quarks.git (fetch)
origin	https://github.com/home4slc/incubator-quarks.git (push)
upstream	https://github.com/apache/incubator-quarks.git (fetch)
upstream	https://github.com/apache/incubator-quarks.git (push)

and then I got this problem:

Username for 'https://github.com': home4slc@apache.org
Password for 'https://home4slc@apache.org@github.com': 
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/home4slc/incubator-quarks.git/'

After that I went into my github account here:

https://github.com/home4slc/incubator-quarks

and modified my password to be what it is in my ~/.netrc file.

Now things are working and I’ll forge on to a pull request.

Susan

> On Mar 15, 2016, at 3:33 PM, Dan Debrunner <dj...@debrunners.com> wrote:
> 
> 
> 
>> On Tuesday, March 15, 2016 2:49 PM, Susan Cline <ho...@pacbell.net> wrote:
>>> Hi,
>> 
>> I’ve been having a problem getting setup with git-hub.
>> 
>> I’m trying to start from scratch making a fork and creating a clone.  Here are 
>> the commands I’ve attempted so far with no success:
> 
> 
> What are you trying to do?
> 
> Use a local git repo for development or for merging pull-requests?
> 
> Dan.


Re: Setting up my environment as a committer for the new github repository

Posted by Dan Debrunner <dj...@debrunners.com>.




> On Tuesday, March 15, 2016 2:49 PM, Susan Cline <ho...@pacbell.net> wrote:
> > Hi,
> 
> I’ve been having a problem getting setup with git-hub.
> 
> I’m trying to start from scratch making a fork and creating a clone.  Here are 
> the commands I’ve attempted so far with no success:


What are you trying to do?

Use a local git repo for development or for merging pull-requests?

Dan.