Should I create a Git repo in project source folder or at upper level?
e.g.
Method 1
.git
project
project\foo.c
project\bar.c
Method 2 (under project folder)
.git
foo.c
bar.c
The goal of versioning a project is to get back (from any state of its history), an operational state able to reproduce what you were doing with said project.
So if you can copy a specific directory and still get back a fully functioning project (whatever that project is), use that as a criteria to create your .git
within that directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With