Here's my current dir structure:
- mygit
- code
- .git
- morecode
- mycode
I'd like to use git to manage my code, but I don't want its files to be put in the expected code/morecode/mycode/.git, but rather outside of the code folder, e.g. in mygit.
Any ideas how to do that?
Also, instead of using a symbolic link, you can simply make .git a regular file and put a path in it:
$ echo gitdir: /path/to/gitdir > .git
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