ctfcli
ctfcli copied to clipboard
Add a command to store in different folder
Add a command to allow you to create the git folder in a different place than the default /home/user/.git
The reasoning is that some of the .git folders have other files in it that may conflict with the install such as secret files. Additionally, I may want to run multiple instances on the same computer.
A decent solution may be creating individual folders in the .git folder for each individual project. IE /home/user/.git/ctf1 /home/user/.git/ctf2 etc.
The .git folder should go to the root directory of the event folder. For example ctf-problems/.git. It shouldn't be going to your home directory. Is that not the behavior you're seeing?
ctfcli iirc doesn't manipulate anything outside of the project directory (nor should it).
I thought this issue was asking to use a different folder than .git to store git history. This is actually possible via git --git-dir and storing git-dir in the .ctf/config file but I'm not sure if that is the issue you're actually running into.
I guess I was confused that it did it in the root of the folder you were in. I was not expecting it to work like the git init. I was expecting it to create a brand new folder and have all the files in there. Can there be some better documentation in the readme about this?