简体   繁体   English

在Windows上创建.git文件

[英]Creating .git file on windows

I am working on school project and they require .git file included. 我正在学校项目上,他们需要包含.git文件。

I am running currently windows. 我当前正在运行Windows。 I have used git app to commit my repositary on github. 我已经使用git app在github上提交了我的仓库。

How can i create a .git file? 如何创建.git文件? I fail to find any solution for this. 我找不到任何解决方案。

Is there a way how to do so on windows? 有没有办法在Windows上这样做?

使用在Windows资源管理器中显示隐藏文件 ,检查您提交的repo文件夹,应该已经有一个.git文件夹

Try this: 尝试这个:

      cd my_source_dir
      git init
      git add .
      git commit -m "initial commit"

And now you can access it from 现在您可以从

     git clone /path/to/my_source_dir new_tree_name

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM