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.
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?
On Wednesday, April 4, 2012 1:04:55 PM UTC-7, Sebastian Thiel wrote:
> 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.
On Wednesday, 4. April 2012 at 22:25, Timothy Sabat wrote: > 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
> On Wednesday, April 4, 2012 1:04:55 PM UTC-7, Sebastian Thiel wrote: > > 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 received this message because you are subscribed to the Google Groups "git-python" group. > To view this discussion on the web visit https://groups.google.com/d/msg/git-python/-/2vhThcVku-0J. > To post to this group, send email to git-python@googlegroups.com (mailto:git-python@googlegroups.com). > To unsubscribe from this group, send email to git-python+unsubscribe@googlegroups.com (mailto:git-python+unsubscribe@googlegroups.com). > For more options, visit this group at http://groups.google.com/group/git-python?hl=en.
On Wed, Apr 4, 2012 at 13:53, Sebastian Thiel <byron...@googlemail.com> wrote: > 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.
> On Wednesday, 4. April 2012 at 22:25, Timothy Sabat wrote:
> 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
> On Wednesday, April 4, 2012 1:04:55 PM UTC-7, Sebastian Thiel wrote:
> 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 received this message because you are subscribed to the Google Groups > "git-python" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/git-python/-/2vhThcVku-0J. > To post to this group, send email to git-python@googlegroups.com. > To unsubscribe from this group, send email to > git-python+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/git-python?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "git-python" group. > To post to this group, send email to git-python@googlegroups.com. > To unsubscribe from this group, send email to > git-python+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/git-python?hl=en.
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:
> On Wed, Apr 4, 2012 at 13:53, Sebastian Thiel <byron...@googlemail.com> > wrote: > > 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.
> > On Wednesday, 4. April 2012 at 22:25, Timothy Sabat wrote:
> > 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
> > On Wednesday, April 4, 2012 1:04:55 PM UTC-7, Sebastian Thiel wrote:
> > 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 received this message because you are subscribed to the Google Groups > > "git-python" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/git-python/-/2vhThcVku-0J. > > To post to this group, send email to git-python@googlegroups.com. > > To unsubscribe from this group, send email to > > git-python+unsubscribe@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/git-python?hl=en.
> > -- > > You received this message because you are subscribed to the Google Groups > > "git-python" group. > > To post to this group, send email to git-python@googlegroups.com. > > To unsubscribe from this group, send email to > > git-python+unsubscribe@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/git-python?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "git-python" group. > To post to this group, send email to git-python@googlegroups.com. > To unsubscribe from this group, send email to > git-python+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/git-python?hl=en.
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.
On Wed, Apr 4, 2012 at 16:33, Daniel D. <dvdotse...@gmail.com> wrote: > Depending on the method of the push / pull, you CAN pass the user / > pass within the push/pull url:
> On Wed, Apr 4, 2012 at 13:53, Sebastian Thiel <byron...@googlemail.com> wrote: >> 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.
>> On Wednesday, 4. April 2012 at 22:25, Timothy Sabat wrote:
>> 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
>> On Wednesday, April 4, 2012 1:04:55 PM UTC-7, Sebastian Thiel wrote:
>> 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 received this message because you are subscribed to the Google Groups >> "git-python" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/git-python/-/2vhThcVku-0J. >> To post to this group, send email to git-python@googlegroups.com. >> To unsubscribe from this group, send email to >> git-python+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/git-python?hl=en.
>> -- >> You received this message because you are subscribed to the Google Groups >> "git-python" group. >> To post to this group, send email to git-python@googlegroups.com. >> To unsubscribe from this group, send email to >> git-python+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/git-python?hl=en.
> 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.
> On Wed, Apr 4, 2012 at 16:33, Daniel D. <dvdotse...@gmail.com> wrote: > > Depending on the method of the push / pull, you CAN pass the user / > > pass within the push/pull url:
> > On Wed, Apr 4, 2012 at 13:53, Sebastian Thiel <byron...@googlemail.com> > wrote: > >> 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.
> >> On Wednesday, 4. April 2012 at 22:25, Timothy Sabat wrote:
> >> It seems to me I'm missing something then. I'm trying to push a tag > change > >> to a remote like so:
> >> 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
> >> On Wednesday, April 4, 2012 1:04:55 PM UTC-7, Sebastian Thiel wrote:
> >> 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 received this message because you are subscribed to the Google > Groups > >> "git-python" group. > >> To view this discussion on the web visit > >> https://groups.google.com/d/msg/git-python/-/2vhThcVku-0J. > >> To post to this group, send email to git-python@googlegroups.com. > >> To unsubscribe from this group, send email to > >> git-python+unsubscribe@googlegroups.com. > >> For more options, visit this group at > >> http://groups.google.com/group/git-python?hl=en.
> >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "git-python" group. > >> To post to this group, send email to git-python@googlegroups.com. > >> To unsubscribe from this group, send email to > >> git-python+unsubscribe@googlegroups.com. > >> For more options, visit this group at > >> http://groups.google.com/group/git-python?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "git-python" group. > To post to this group, send email to git-python@googlegroups.com. > To unsubscribe from this group, send email to > git-python+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/git-python?hl=en.
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.
>> 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.
>> On Wed, Apr 4, 2012 at 16:33, Daniel D. <dvdotse...@gmail.com> wrote: >> > 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:
>> > On Wed, Apr 4, 2012 at 13:53, Sebastian Thiel <byron...@googlemail.com> >> > wrote: >> >> 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.
>> >> On Wednesday, 4. April 2012 at 22:25, Timothy Sabat wrote:
>> >> It seems to me I'm missing something then. I'm trying to push a tag >> >> change >> >> to a remote like so:
>> >> 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
>> >> On Wednesday, April 4, 2012 1:04:55 PM UTC-7, Sebastian Thiel wrote:
>> >> 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 received this message because you are subscribed to the Google >> >> Groups >> >> "git-python" group. >> >> To view this discussion on the web visit >> >> https://groups.google.com/d/msg/git-python/-/2vhThcVku-0J. >> >> To post to this group, send email to git-python@googlegroups.com. >> >> To unsubscribe from this group, send email to >> >> git-python+unsubscribe@googlegroups.com. >> >> For more options, visit this group at >> >> http://groups.google.com/group/git-python?hl=en.
>> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "git-python" group. >> >> To post to this group, send email to git-python@googlegroups.com. >> >> To unsubscribe from this group, send email to >> >> git-python+unsubscribe@googlegroups.com. >> >> For more options, visit this group at >> >> http://groups.google.com/group/git-python?hl=en.
>> -- >> You received this message because you are subscribed to the Google Groups >> "git-python" group. >> To post to this group, send email to git-python@googlegroups.com. >> To unsubscribe from this group, send email to >> git-python+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/git-python?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "git-python" group. > To post to this group, send email to git-python@googlegroups.com. > To unsubscribe from this group, send email to > git-python+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/git-python?hl=en.
> 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.
> >> 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.
> >> On Wed, Apr 4, 2012 at 16:33, Daniel D. <dvdotse...@gmail.com> wrote: > >> > 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:
> >> > On Wed, Apr 4, 2012 at 13:53, Sebastian Thiel < > byron...@googlemail.com> > >> > wrote: > >> >> 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.
> >> >> On Wednesday, 4. April 2012 at 22:25, Timothy Sabat wrote:
> >> >> It seems to me I'm missing something then. I'm trying to push a tag > >> >> change > >> >> to a remote like so:
> >> >> 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
> >> >> On Wednesday, April 4, 2012 1:04:55 PM UTC-7, Sebastian Thiel wrote:
> >> >> 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 received this message because you are subscribed to the Google > >> >> Groups > >> >> "git-python" group. > >> >> To view this discussion on the web visit > >> >> https://groups.google.com/d/msg/git-python/-/2vhThcVku-0J. > >> >> To post to this group, send email to git-python@googlegroups.com. > >> >> To unsubscribe from this group, send email to > >> >> git-python+unsubscribe@googlegroups.com. > >> >> For more options, visit this group at > >> >> http://groups.google.com/group/git-python?hl=en.
> >> >> -- > >> >> You received this message because you are subscribed to the Google > >> >> Groups > >> >> "git-python" group. > >> >> To post to this group, send email to git-python@googlegroups.com. > >> >> To unsubscribe from this group, send email to > >> >> git-python+unsubscribe@googlegroups.com. > >> >> For more options, visit this group at > >> >> http://groups.google.com/group/git-python?hl=en.
> >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "git-python" group. > >> To post to this group, send email to git-python@googlegroups.com. > >> To unsubscribe from this group, send email to > >> git-python+unsubscribe@googlegroups.com. > >> For more options, visit this group at > >> http://groups.google.com/group/git-python?hl=en.
> > -- > > You received this message because you are subscribed to the Google Groups > > "git-python" group. > > To post to this group, send email to git-python@googlegroups.com. > > To unsubscribe from this group, send email to > > git-python+unsubscribe@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/git-python?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "git-python" group. > To post to this group, send email to git-python@googlegroups.com. > To unsubscribe from this group, send email to > git-python+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/git-python?hl=en.