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

Re: New to Git / Questions about single user / multiple projects

From
Changsheng Jiang <jiangzuoyan@gmail.com>
Date
Aug 19, 2009, 02:24 UTC
Message-ID
<eafc0afe0908181924x60e5dd23vd37711db880ead84@mail.gmail.com>
In-Reply-To
<a2db4dd50908181852s1e2c64fen8b883faf76b3136d@mail.gmail.com>

I am not that familiar with git too, but see the answers below questions, respectively, and fix me if i am wrong.

On Wed, Aug 19, 2009 at 09:52, Rob (gmail) <robvanb@gmail.com> wrote:
Show 19 quoted lines
>
> I'm new to git and have some (I think) basic questions that I have not
> been able to find answers to in the documentation.
> It's very possible that these are the result of my lack in
> understanding git / version control, so feel free to point me to
> documentation
> that might contain the answers.
>
> I'm doing ERP development for my job and various 'hobby' development
> in my spare time.
> I'd like to track/store/ version control the code that I write for
> both work and play.
> I am (currently) working by myself, no need to have multiple
> developers working of the same code.
>
> Q1:
> Can I create a single repository (project?) for all my code, knowing
> that there are multiple small, unrelated projects. Or should I create
> a new repository for each project ?
git-submodule
Show 6 quoted lines
>
> Q2:
> After initalizing my repository, and comitting the 1st batch of code:
> When further working on the code, will the command "git add ." add all
> changed and new files ? Or do I specifically need to list the new
> files ?
=git status= or =git ls-files= will list the files in different statuses.

If there are no other files, such as backup file produced by editor, you can run =git add .=. If there are, try to configure in file =.git/info/exclude= or =.gitignore=.

Changed files can be committed automatically by =git commit -a=
>
> Q3: Can I run 'git add x' in any subdirectory, or do I need to issue
> if from the root of the project ?
You can.
Show 11 quoted lines
>
> Thanks,
>
> Rob.
>
> --
> When in trouble or in doubt, run in circles, scream and shout
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
                                                     Changsheng Jiang
Previous: Rob (gmail)Next: Chris Packham
Message 2 of 11 in “New to Git / Questions about single user / multiple projects”
  1. Rob (gmail)Aug 19, 2009
  2. Changsheng JiangAug 19, 2009
  3. Chris PackhamAug 19, 2009
  4. Daniel BarkalowAug 19, 2009
  5. Jakub NarebskiAug 19, 2009
  6. Rob (gmail)Aug 19, 2009
  7. Jakub NarebskiAug 19, 2009
  8. Rob (gmail)Aug 19, 2009
  9. Jeff KingAug 19, 2009
  10. Jeff KingAug 19, 2009
  11. Jakub NarebskiAug 19, 2009

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.