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

repository in different directories

From
Carlo Trimarchi <mr.spoon21@gmail.com>
Date
Jul 11, 2011, 12:44 UTC
Message-ID
<CABU6SG5uLXAsu0yXa1cmPAmte3WnsjaHN0r_D4c8C7W2tKJDHw@mail.gmail.com>

Hi, I'm using git to build a website using the Codeigniter php framework. I work on my local machine and then push to a remote server. The whole website would be divided in different directories. I have the webroot in /home/carlo/public_html/ directory. Here I have an index.php, the css files and images. Then, outside this directory, I have the application folder with all the real php stuff. Suppose it is in /home/carlo/ci/application.

I have the same configuration on the server. So, the workflow would be that I work on my local machine, I change something in the application folder, then something in some css file and then I have to sync everything with the server. I can have two repositories, one for the folder in the webroot and another one for the application folder, but then I'd have to push twice. Is there a better or a good way to do all this?

Thanks, Carlo

Next: Steve Muadib
Message 1 of 4 in “repository in different directories”
  1. Carlo TrimarchiJul 11, 2011
  2. Steve MuadibJul 11, 2011
  3. Carlo TrimarchiJul 11, 2011
  4. Holding, LawrenceJul 12, 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.