git/list[1] front-page[2] threads[3] people[4] search[5] about
 

help on importing

From
MRMihamina Rakotomandimby <mihamina@bbs.mg>
Date
Jun 19, 2011, 15:03 UTC
Message-ID
<20110619180348.576ea06e.mihamina@bbs.mg>
Hi all,

I made several commits to a small local program. When I list them with "git log" I see them.

To publish my work, I choosed to sign in a forge (like github, google code,...). I choosed forge.ocamlcore.org

With my account creation, the forge automatically created an empty GIT repository.

I clone it with:
  git clone git+ssh://rakotomandimby@forge.ocamlcore.org/gitroot/ocaml-crypt/ocaml-crypt.git
  Initialized empty Git repository in /tmp/ocaml-crypt/ocaml-crypt/.git/
  warning: You appear to have cloned an empty repository.
I am surprised the initialisation is not in /tmp/ocaml-crypt/ocaml-crypt.git/.git/ 
as I pulled "ocaml-crypt.git".
Anyway...
When add+commit a file into "/tmp/ocaml-crypt/ocaml-crypt/", 
I get no errors, but when pushing:
  $ git push
  No refs in common and none specified; doing nothing.
  Perhaps you should specify a branch such as 'master'.
  fatal: The remote end hung up unexpectedly
I dont understand...

If I have success on this first simple steps, I could switch to the next level: Importing my local commits to that cloned repository ans then push that all.

I read several GIT documentation, but it seems I dont have the right keywords to have good results...

Would you help?
-- 
RMA.
Next: Jakub Narebski
Message 1 of 2 in “help on importing”
  1. Mihamina RakotomandimbyJun 19, 2011
  2. Jakub NarebskiJun 19, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.