English 中文(简体)
当地存放地在哪里?
原标题:Where is the local repository located?
  • 时间:2012-01-13 19:10:38
  •  标签:
  • git

https://commons.wikimedia.org/wiki/File:Git_data_flow_simplated.svg> Wikipedia:

“entergraph

在哪里说“地方存放处”位于 物理(档案系统中)?

最佳回答

工作名录位于您的当地机器上。 当地托存公司是《工作名录》内的<代码>.git/。 该指数是一个概念地点,也实际居住在<代码>.git/的子标题中。

问题回答

页: 1

当地存放处是工作名录的夹

远程存放在服务器上或档案系统中。

.git是存放地方存放处的地方(不是工作名录!)

工作名录通常为名录,其位置为:

Working Directory is where your code resides on local machine. Git Local repo is .git/ which is generally inside the Working Directory. It contains HEAD and various useful info. You can have a look of what it contains:

cd .git 
ls -a

Uttams-MBP:project uttamgc$ ls -al

drwxr-x 9 uttamgc 工作人员 288 Sep 28 14:19

在上述例子中,一旦创建这个文件夹,项目即为文件夹或名录[mkdir],我就从文件夹中抽入项目目录,并创设了目录。 [第三行有:当地存放处]





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签