Re: How to remove remote branch with git?
On 04/21/2009 07:30 PM, Og Maciel wrote: On Mon, Apr 20, 2009 at 10:54 PM, Vincent Untz wrote: Added to http://live.gnome.org/Git/FAQ As per the information above: git push origin :tags/billreminder-0.3.2 --- You are trying to delete the tag 'billreminder-0.3.2'. http://live.gnome.org/Git/Help/TagUpdates --- To ssh://ogmac...@git.gnome.org/git/billreminder ! [remote rejected] billreminder-0.3.2 (pre-receive hook declined) error: hooks/pre-receive exited with error code 1 error: failed to push some refs to 'ssh://ogmac...@git.gnome.org/git/billreminder' Am I doing something wrong? Thanks in advance. That's actually what I expected. I added some detail to this page: http://live.gnome.org/Git/Help/TagUpdates Please find owen or krh in #git to sort things out as special cases. Someone please update Git/FAQ :). Cheers, behdad ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: How to remove remote branch with git?
On Mon, Apr 20, 2009 at 10:54 PM, Vincent Untz wrote: > Added to http://live.gnome.org/Git/FAQ As per the information above: git push origin :tags/billreminder-0.3.2 --- You are trying to delete the tag 'billreminder-0.3.2'. http://live.gnome.org/Git/Help/TagUpdates --- To ssh://ogmac...@git.gnome.org/git/billreminder ! [remote rejected] billreminder-0.3.2 (pre-receive hook declined) error: hooks/pre-receive exited with error code 1 error: failed to push some refs to 'ssh://ogmac...@git.gnome.org/git/billreminder' Am I doing something wrong? Thanks in advance. -- Og B. Maciel omac...@foresightlinux.org ogmac...@gnome.org ogmac...@ubuntu.com GPG Keys: D5CFC202 http://www.ogmaciel.com (en_US) http://blog.ogmaciel.com (pt_BR) ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: How to remove remote branch with git?
Le samedi 18 avril 2009, à 22:28 +0200, Frederic Peters a écrit : > Jaap A. Haitsma wrote: > > > I just did my first commit with git (Yay!!). However I first made a > > mistake and made a new remote branch called jaap in the cheese > > project. > > I now want to remove that branch because it was a mistake. How do I do this? > > What I read from the web I need to do the following > > > > git push ssh://jhait...@git.gnome.org/git/cheese origin :jaap > > What about "git push origin :jaap" ? Added to http://live.gnome.org/Git/FAQ Vincent -- Les gens heureux ne sont pas pressés. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: How to remove remote branch with git?
On Sat, 2009-04-18 at 22:24 +0200, Jaap A. Haitsma wrote: > I just did my first commit with git (Yay!!). However I first made a > mistake and made a new remote branch called jaap in the cheese > project. > I now want to remove that branch because it was a mistake. How do I do this? > What I read from the web I need to do the following > > git push ssh://jhait...@git.gnome.org/git/cheese origin :jaap > > However I get the following error messages. > > fatal: refs/remotes/origin/HEAD cannot be resolved to branch. > fatal: The remote end hung up unexpectedly Should work without the 'origin' in the above. You need to specify where you want to push to, *either* with the shorthand 'origin' or with an URL. As other people have said you can edit .git/config to switch an existing checkout to use the ssh URL. You can also put something like: repos["git.gnome.org"] = "ssh://usern...@git.gnome.org/git/" In your ~/.jhbuildrc to to get jhbuild to check things out the right way the first time. (I haven't actually checked that our modulesets use the name 'git.gnome.org' for this repository.) - Owen ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: How to remove remote branch with git?
On Sat, 18 Apr 2009 23:55:49 +0200, "Jaap A. Haitsma" wrote: > On Sat, Apr 18, 2009 at 22:28, Frederic Peters wrote: >> Jaap A. Haitsma wrote: >> >>> I just did my first commit with git (Yay!!). However I first made a >>> mistake and made a new remote branch called jaap in the cheese >>> project. >>> I now want to remove that branch because it was a mistake. How do I do > this? >>> What I read from the web I need to do the following >>> >>> git push ssh://jhait...@git.gnome.org/git/cheese origin :jaap >> >> What about "git push origin :jaap" ? >> > This works when I have a clone of > ssh://jhait...@git.gnome.org/git/cheese . So now I removed it :-) > > However I had a checkout of jhbuild which does public clones. Is there > a way to do it when you have a public clone > Make it point to the SSH repository: just edit .git/config with a text editor, it should be straight-forward. Maybe "git remote" could help as well, but editing the config file works just fine here. Nicolas !DSPAM:39,49ea510e40531405241827! ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: How to remove remote branch with git?
On Sat, Apr 18, 2009 at 22:28, Frederic Peters wrote: > Jaap A. Haitsma wrote: > >> I just did my first commit with git (Yay!!). However I first made a >> mistake and made a new remote branch called jaap in the cheese >> project. >> I now want to remove that branch because it was a mistake. How do I do this? >> What I read from the web I need to do the following >> >> git push ssh://jhait...@git.gnome.org/git/cheese origin :jaap > > What about "git push origin :jaap" ? > This works when I have a clone of ssh://jhait...@git.gnome.org/git/cheese . So now I removed it :-) However I had a checkout of jhbuild which does public clones. Is there a way to do it when you have a public clone Thanks Jaap ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: How to remove remote branch with git?
Jaap A. Haitsma wrote: > I just did my first commit with git (Yay!!). However I first made a > mistake and made a new remote branch called jaap in the cheese > project. > I now want to remove that branch because it was a mistake. How do I do this? > What I read from the web I need to do the following > > git push ssh://jhait...@git.gnome.org/git/cheese origin :jaap What about "git push origin :jaap" ? Frederic ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
How to remove remote branch with git?
I just did my first commit with git (Yay!!). However I first made a mistake and made a new remote branch called jaap in the cheese project. I now want to remove that branch because it was a mistake. How do I do this? What I read from the web I need to do the following git push ssh://jhait...@git.gnome.org/git/cheese origin :jaap However I get the following error messages. fatal: refs/remotes/origin/HEAD cannot be resolved to branch. fatal: The remote end hung up unexpectedly What do I do wrong? Thanks Jaap ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list