How to make git include a .git

1

Good, I'm in Linux, and for some reason I want to backup it with git to everything that interests me, some configuration files and some projects that I'm working on, that these projects use git.

The problem is that when trying to version the project folders, git takes them as subprojects, and only takes the reference to the last commit of the project. when I want you to version all folders, including .git

I do not know if this is possible in git, any help is welcome

    
asked by Daniel Pérez 05.06.2017 в 17:43
source

1 answer

1

You could think about using submodules and have a personal repo / projects so you could have them versioned, all grouped in a single folder but each project would have its independent repository.

link

    
answered by 06.06.2017 в 20:33