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