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

Questions on local clone and push back

From
AGArshavir Grigorian <grigorian@gmail.com>
Date
Jan 30, 2014, 05:43 UTC
Message-ID
<CACdn6eksz0q1+_JHwF=wKP_ziUFzhB5ij93A3-BEap3kosipFg@mail.gmail.com>

Hi, I have the following use case - I have a set of files that are used for various adhoc projects, each project is in its own directory, and the files sometime need to be customized/enhanced for a specific project. Ideally some of these enhancements should be merged to a "central" place. I realize that this is not the most optimal setup for software development, however these aren't software projects per se and this setup works very well. To this end, I am thinking of creating a git repository in one directory (central location), then cloning it (-l -n -s) into another directory in hopes of making enhancements there and eventually pushing / merging some of those enhancements back to the central location.

Questions: 1) is this a good approach to achieving what I need 2) I was
getting an error when I tied to run "git push" about the branch being
checked out and 3) how do I selectively push / merge only certain commits
back to the "source" repository / branch?

I am using pushing / merging interchangeably because I don't know which action is more appropriate in this situation.

This is my first time using git so any insights would be much appreciated. TIA

Next: Andrew Keller
Message 1 of 2 in “Questions on local clone and push back”
  1. Arshavir GrigorianJan 30, 2014
  2. Andrew KellerJan 30, 2014

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.