git.exc.InvalidGitRepositoryError

After copying custom app, during bench setup requirements I get git.exc.InvalidGitRepositoryError

what steps did you followed?

i cloned the git repo and copied the apps along with .git folder to my new project, then created a new site and restored backup files.After that during setting up requirements i got the invalid git repository error

you did not need to copy the apps you should be installing it through remote URL
try bench get-app your-app-url

got error with that also

this is the correct command
replace the version

bench get-app --branch version-12 https://github.com/myusername/myap

Solved the error with git commit --allow-empty -n -m ‚ÄúCommit message‚ÄĚ
after initializing git inside custom app

1 Like