1

I am working on school project and they require .git file included.

I am running currently windows. I have used git app to commit my repositary on github.

How can i create a .git file? I fail to find any solution for this.

Is there a way how to do so on windows?

J.dd
  • 145
  • 15
  • 2
    If your project is a Git repository then it has a `.git` already. It is a directory, not a file, and I think by default it is marked 'hidden' on Windows – CodingWithSpike Jun 21 '16 at 12:26
  • 1
    Possible duplicate of [No .git repository folder showing, using windows 7](http://stackoverflow.com/questions/11766147/no-git-repository-folder-showing-using-windows-7) – CodingWithSpike Jun 21 '16 at 12:26

2 Answers2

1

Check the repo folder you committed, using show hidden files on windows explorer, there should already be a .git folder

Moses Koledoye
  • 77,341
  • 8
  • 133
  • 139
0

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
Sachin Bahal
  • 138
  • 1
  • 3
  • 14