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

How to setup git repository for internal collaboration, that can be rebased easily?

From
KPKumar Pande <pandekumar023@gmail.com>
Date
Mar 26, 2012, 19:08 UTC
Message-ID
<CANz+fEmN2qm9Nwk4tyg0eCrKPR6WZg4kvqCkhB7TmYw2JKoJJQ@mail.gmail.com>

Pardon if this embarrassingly simple question, I am new to git haven't found git-newbies mailing list.

We have a situation where we want to setup internal git repository that will be based on say linux-3.3 kernel.

There are about four engineers working on developing things for custom hardware. So would create a development branch say companyx-devel and we will commit all of our changes to this compnayx-devel branch.

We also want to keep upto date with latest kernel, so say if we want to move to latest 3.4-rc4 we could rebase (?) our origin to 3.4-rc4, of course fix any of the conflicts we may find etc.

We are not sure how to  go about setting up the initial import of linux3-3 kernel into git repository on of my local servers?

We know we should do following on the server:

git init --bare git config core.sharedrepository 1

Should we be cloning the linux kernel on the server? git clone path-to-kernel-org-git-tree

Or I should clone the tree from kernel.dot.org client and then push it to my local git repo?

We tried cloning the tree from kernel.dot.org on client and pushing it to our internal server but that doesn't push kernel code as cloned directory already has .git directory.

Is there a document/web page one can refer to that might help us handling this scenario?

-Kumar
Next: Kumar Pande
Message 1 of 3 in “How to setup git repository for internal collaboration, that can be rebased easily?”
  1. Kumar PandeMar 26, 2012
  2. Kumar PandeMar 27, 2012
  3. Neal KreitzingerMar 29, 2012

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.