[opensuse-marketing] using git
Hello, I don't understand what mean this part of the git mini-howto? git push origin master so I can't push my work on artwork git thanks for help jdd -- http://www.dodin.net http://pizzanetti.fr -- To unsubscribe, e-mail: opensuse-marketing+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-marketing+owner@opensuse.org
On 2011-10-19 09:10:38 (+0200), jdd <jdd@dodin.org> wrote:
I don't understand what mean this part of the git mini-howto?
git push origin master
so I can't push my work on artwork git
You have to do that indeed. The thing is, you don't "check out" a git repository as you would do with e.g. subversion. What you actually do is create a branch of the git repository, so you create your own fork of the git repository as a local git repository on your harddisk. When you do a "git push", you push changes to the git repository. If you don't do the "origin master" bit, you will only push to your local git repository (= on your harddisk, not on gitorious). So saying "origin master" actually says: don't push to my local git repository, but push to the "master", which is the git repository you branched, hence the one on gitorious. Once you've done that (once), it memorizes that, and from there on you only need to say "git push", and it will always go to the master. Don't ask me why git is so unnecessarily complex, I don't know. But it's still a pretty powerful tool. cheers -- -o) Pascal Bleser /\\ http://opensuse.org -- we haz green _\_v http://fosdem.org -- we haz conf
Le 19/10/2011 09:50, Pascal Bleser a écrit :
You have to do that indeed.
git push origin master fatal: protocol error: expected sha/ref, got ' ---------------------------------------------- The git:// protocol is read-only. Please use the push url as listed on the repository page. ----------------------------------------------' jdd@linux-0i5h:/media/ACER/opensuse/git/opensuse-artwork> git push fatal: protocol error: expected sha/ref, got ' ---------------------------------------------- The git:// protocol is read-only. Please use the push url as listed on the repository page. ----------------------------------------------' but I just think: git may ba a ssh thing (opposed to a passwd thing)? If so it can't work because I use at least three computers and on each two installs (11.4 & 12.1), alternatively. I have only one usb drive for data :-) so may be the problem is the ssh key?? thanks jdd -- http://www.dodin.net http://pizzanetti.fr -- To unsubscribe, e-mail: opensuse-marketing+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-marketing+owner@opensuse.org
On 2011-10-19 13:15:50 (+0200), jdd <jdd@dodin.org> wrote:
Le 19/10/2011 09:50, Pascal Bleser a écrit :
You have to do that indeed.
git push origin master fatal: protocol error: expected sha/ref, got ' ---------------------------------------------- The git:// protocol is read-only. [...]
Make sure you cloned with the URL git@gitorious.org:opensuse-artwork/opensuse-artwork.git
but I just think: git may ba a ssh thing (opposed to a passwd thing)? If so it can't work because I use at least three computers and on each two installs (11.4 & 12.1), alternatively. I have only one usb drive for data :-)
so may be the problem is the ssh key??
Sounds likely. But you can register several ssh keys with your gitorious accounts: https://gitorious.org/~YOURUSERNAMEHERE/keys ^^^^^^^^^^^^^^^^ change that bit, obviously :) cheers -- -o) Pascal Bleser /\\ http://opensuse.org -- we haz green _\_v http://fosdem.org -- we haz conf
Le 19/10/2011 13:32, Pascal Bleser a écrit :
Make sure you cloned with the URL git@gitorious.org:opensuse-artwork/opensuse-artwork.git
??? cloned? don't understand git pull works (I get the artwork repository)
Sounds likely. But you can register several ssh keys with your gitorious accounts: https://gitorious.org/~YOURUSERNAMEHERE/keys ^^^^^^^^^^^^^^^^ change that bit, obviously :)
done but same problem. when I issue "git push origin master", do I have to copy paste exactly that or replace origin with something other? I have: jdd@linux-0i5h:/media/ACER/opensuse/git/opensuse-artwork> git push origin master fatal: protocol error: expected sha/ref, got ' ---------------------------------------------- The git:// protocol is read-only. Please use the push url as listed on the repository page. but I do not understand what that mean exactly. When I try changing origin to any URL, I get .../refs not found: did you run git update-server-info on the server? can you give me (in private if necessary) the exact commands I have to type? thanks (and sorry to be so dumb :-() jdd -- http://www.dodin.net http://pizzanetti.fr -- To unsubscribe, e-mail: opensuse-marketing+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-marketing+owner@opensuse.org
Hmm.. I guess you cloned with the http url not the git url On Wed, Oct 19, 2011 at 6:17 PM, jdd <jdd@dodin.org> wrote:
Le 19/10/2011 13:32, Pascal Bleser a écrit :
Make sure you cloned with the URL git@gitorious.org:opensuse-artwork/opensuse-artwork.git
??? cloned? don't understand
git pull works (I get the artwork repository)
Sounds likely. But you can register several ssh keys with your gitorious accounts: https://gitorious.org/~YOURUSERNAMEHERE/keys ^^^^^^^^^^^^^^^^ change that bit, obviously :)
done
but same problem.
when I issue "git push origin master", do I have to copy paste exactly that or replace origin with something other?
I have:
jdd@linux-0i5h:/media/ACER/opensuse/git/opensuse-artwork> git push origin master fatal: protocol error: expected sha/ref, got ' ---------------------------------------------- The git:// protocol is read-only.
Please use the push url as listed on the repository page.
but I do not understand what that mean exactly. When I try changing origin to any URL, I get
.../refs not found: did you run git update-server-info on the server?
can you give me (in private if necessary) the exact commands I have to type?
thanks (and sorry to be so dumb :-()
jdd
-- http://www.dodin.net http://pizzanetti.fr -- To unsubscribe, e-mail: opensuse-marketing+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-marketing+owner@opensuse.org
-- Regards Manu Gupta -- To unsubscribe, e-mail: opensuse-marketing+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-marketing+owner@opensuse.org
http://stackoverflow.com/questions/5703620/ssh-login-issues-at-github-and-au... This should help, I faced the same issue On Wed, Oct 19, 2011 at 6:35 PM, Manu Gupta <manugupt1@gmail.com> wrote:
Hmm.. I guess you cloned with the http url not the git url
On Wed, Oct 19, 2011 at 6:17 PM, jdd <jdd@dodin.org> wrote:
Le 19/10/2011 13:32, Pascal Bleser a écrit :
Make sure you cloned with the URL git@gitorious.org:opensuse-artwork/opensuse-artwork.git
??? cloned? don't understand
git pull works (I get the artwork repository)
Sounds likely. But you can register several ssh keys with your gitorious accounts: https://gitorious.org/~YOURUSERNAMEHERE/keys ^^^^^^^^^^^^^^^^ change that bit, obviously :)
done
but same problem.
when I issue "git push origin master", do I have to copy paste exactly that or replace origin with something other?
I have:
jdd@linux-0i5h:/media/ACER/opensuse/git/opensuse-artwork> git push origin master fatal: protocol error: expected sha/ref, got ' ---------------------------------------------- The git:// protocol is read-only.
Please use the push url as listed on the repository page.
but I do not understand what that mean exactly. When I try changing origin to any URL, I get
.../refs not found: did you run git update-server-info on the server?
can you give me (in private if necessary) the exact commands I have to type?
thanks (and sorry to be so dumb :-()
jdd
-- http://www.dodin.net http://pizzanetti.fr -- To unsubscribe, e-mail: opensuse-marketing+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-marketing+owner@opensuse.org
-- Regards Manu Gupta
-- Regards Manu Gupta -- To unsubscribe, e-mail: opensuse-marketing+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-marketing+owner@opensuse.org
please, let me do all this again from the beginning, I get lost... I try to follow this page: http://en.opensuse.org/openSUSE:Marketing_and_Artwork_repository * I have an account at gitorious: https://gitorious.org/~jdd so points 1 and 2 are ok * I pasted the new ssh key following the gitorious instructions (point 3) * I already used git, so point 4 is ok (I hope so :-) * of course I installed git. I even removed it then installed again, just in case. (point 5) * so I'm in point 6: git config user.email "jdd@dodin.org" error: could not lock config file .git/config: No such file or directory and in fact there is no .git in my home what do I have to do? thanks jdd -- http://www.dodin.net http://pizzanetti.fr -- To unsubscribe, e-mail: opensuse-marketing+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-marketing+owner@opensuse.org
On 19.10.2011 16:21, jdd wrote:
please, let me do all this again from the beginning, I get lost...
I try to follow this page:
http://en.opensuse.org/openSUSE:Marketing_and_Artwork_repository
* I have an account at gitorious:
so points 1 and 2 are ok
* I pasted the new ssh key following the gitorious instructions (point 3)
* I already used git, so point 4 is ok (I hope so :-)
* of course I installed git. I even removed it then installed again, just in case. (point 5)
* so I'm in point 6:
git config user.email "jdd@dodin.org" error: could not lock config file .git/config: No such file or directory
and in fact there is no .git in my home
what do I have to do?
The manual is wrong there, it expects you to be in a checked out git directory at that point. To set your username globally for git, use --global. I added that to the wiki page. Greetings -- Thomas Schmidt (tom [at] opensuse.org) openSUSE Boosters Team "Don't Panic", Douglas Adams (11.03.1952 - 11.05.2001) -- To unsubscribe, e-mail: opensuse-marketing+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-marketing+owner@opensuse.org
Le 19/10/2011 17:16, Thomas Schmidt a écrit :
The manual is wrong there, it expects you to be in a checked out git directory at that point. To set your username globally for git, use --global. I added that to the wiki page.
ok, now I think it worked. Thanks all!! jdd -- http://www.dodin.net http://pizzanetti.fr -- To unsubscribe, e-mail: opensuse-marketing+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-marketing+owner@opensuse.org
participants (4)
-
jdd
-
Manu Gupta
-
Pascal Bleser
-
Thomas Schmidt