Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
username and password when pushing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Timothy Sabat  
View profile  
 More options Apr 4 2012, 2:42 pm
From: Timothy Sabat <timothy.sa...@gmail.com>
Date: Wed, 4 Apr 2012 11:42:30 -0700 (PDT)
Local: Wed, Apr 4 2012 2:42 pm
Subject: username and password when pushing

how is this configured?  When using ipython, i'm prompted for username and
password.  Is there a way to specify a set of keys to use?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sebastian Thiel  
View profile  
 More options Apr 4 2012, 4:04 pm
From: Sebastian Thiel <byron...@googlemail.com>
Date: Wed, 4 Apr 2012 22:04:55 +0200
Local: Wed, Apr 4 2012 4:04 pm
Subject: Re: [git-python] username and password when pushing

There is no way to do that afaik. Instead you can put your public key into the authorized_keys file of the respective user on the destination repository's computer.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Timothy Sabat  
View profile  
 More options Apr 4 2012, 4:25 pm
From: Timothy Sabat <timothy.sa...@gmail.com>
Date: Wed, 4 Apr 2012 13:25:04 -0700 (PDT)
Local: Wed, Apr 4 2012 4:25 pm
Subject: Re: [git-python] username and password when pushing

It seems to me I'm missing something then.  I'm trying to push a tag change
to a remote like so:

remote.push('refs/tags/blah:/refs/tags/blah')

and the remote is github.  I get prompted for a un/pw.  However, the same
'git push tags' call at the command line works without prompting for my
credentials.

does git-python pick up on the keys for the user under which the python
code is run?

T


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sebastian Thiel  
View profile  
 More options Apr 4 2012, 4:53 pm
From: Sebastian Thiel <byron...@googlemail.com>
Date: Wed, 4 Apr 2012 22:53:20 +0200
Local: Wed, Apr 4 2012 4:53 pm
Subject: Re: [git-python] username and password when pushing

gitpython just uses the git command to fetch and push, which in turn uses ssh. Maybe ipython sets the environment in a way which alters how ssh works.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel D.  
View profile  
 More options Apr 4 2012, 7:33 pm
From: "Daniel D." <dvdotse...@gmail.com>
Date: Wed, 4 Apr 2012 16:33:55 -0700
Local: Wed, Apr 4 2012 7:33 pm
Subject: Re: [git-python] username and password when pushing
Depending on the method of the push / pull, you CAN pass the user /
pass within the push/pull url:

For SmartHTTP this is how it would look like:

http://username:passw...@www.example.com/path/to/my/repo

Daniel.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Colonel Graff  
View profile  
 More options Apr 4 2012, 7:35 pm
From: Colonel Graff <graffatcolmin...@gmail.com>
Date: Wed, 4 Apr 2012 19:35:45 -0400
Local: Wed, Apr 4 2012 7:35 pm
Subject: Re: [git-python] username and password when pushing

But in all fairness, the user for github is just git. The URL should look
like git@github:username/project
On Apr 4, 2012 7:33 PM, "Daniel D." <dvdotse...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel D.  
View profile  
 More options Apr 4 2012, 7:42 pm
From: "Daniel D." <dvdotse...@gmail.com>
Date: Wed, 4 Apr 2012 16:42:04 -0700
Local: Wed, Apr 4 2012 7:42 pm
Subject: Re: [git-python] username and password when pushing
In fact, you can use URLs with user:pass@domain right inside your
local repo's config:

    [remote "origin"]
        url = https://username:passw...@example.com/repodir/
        fetch = +refs/heads/*:refs/remotes/origin/*

This part of config file is NOT pushed to the server, so you password
will only be in local repo's config file. When you use that local repo
against GitPython, it (assuming it uses git command line backend) will
not even know server requires log in credentials. The log in will be
handled transparently by curl within git client.

Again, this applies only to Git SmartHTTP protocol. Don't know if this
works with ssh protocol.

Daniel.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Colonel Graff  
View profile  
 More options Apr 4 2012, 7:44 pm
From: Colonel Graff <graffatcolmin...@gmail.com>
Date: Wed, 4 Apr 2012 19:44:04 -0400
Local: Wed, Apr 4 2012 7:44 pm
Subject: Re: [git-python] username and password when pushing

I'm no github expert, do they support smart http?
On Apr 4, 2012 7:42 PM, "Daniel D." <dvdotse...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel D.  
View profile  
 More options Apr 4 2012, 7:48 pm
From: "Daniel D." <dvdotse...@gmail.com>
Date: Wed, 4 Apr 2012 16:48:45 -0700
Local: Wed, Apr 4 2012 7:48 pm
Subject: Re: [git-python] username and password when pushing
They were one of the first outfits to do so :) That's what that "HTTP"
link is for among "SSH","HTTP","GIt Read Only" choices on the top of
the project page.

You get the link line this from that field:

https://dvdotse...@github.com/dvdotsenko/ges.git

Just change it to

https://dvdotsenko:mypassw...@github.com/dvdotsenko/ges.git

Daniel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Colonel Graff  
View profile  
 More options Apr 4 2012, 7:51 pm
From: Colonel Graff <graffatcolmin...@gmail.com>
Date: Wed, 4 Apr 2012 19:51:50 -0400
Local: Wed, Apr 4 2012 7:51 pm
Subject: Re: [git-python] username and password when pushing

Interesting. Didn't know they offered it. Learn something new every day
On Apr 4, 2012 7:48 PM, "Daniel D." <dvdotse...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »