Where does Git store files?

前端 未结 10 1169
花落未央
花落未央 2020-12-08 09:15

I just ran the following commands on my Ruby on Rails project:

git init
git add .
git commit -a -m \'Initial\'

Where does Git actually stor

10条回答
  •  被撕碎了的回忆
    2020-12-08 09:24

    If you are on an English Windows machine, Git's default storage path will be C:\Documents and Settings\< current_user>\, because on Windows the default Git local settings resides at C:\Documents and Settings\< current_user>\.git and so Git creates a separate folder for each repo/clone at C:\Documents and Settings\< current_user>\ and there are all the directories of cloned project.

    For example, if you install Symfony 2 with

    git clone git://github.com/symfony/symfony.git
    

    the Symfony directory and file will be at

    C:\Documents and Settings\< current_user>\symfony\
    

提交回复
热议问题