I want to have a server and client projects in the same repository.
After finishing backend I cloned a boilerplate(client) for the frontend from another repository. It is in the same level as src.
After pushing it to github I can see a white arrow in client folder, and can't open. Following the steps in this link I removed .git from client folder. But when I do
git add client
or
git add .
git commit -m "commit"
it says that
husky > pre-commit (node v10.16.0)
i No staged files found.
On branch features
nothing to commit, working tree clean
What am I doing wrong?
You should first do:
git rm --cached client # no trailing slash
git commit -m "remove client gitlink"
Than you can try and add client/ again, which, since it has no .git subfolder, should include its files content.
Note that, as illustrate in okonet/lint-staged issue 682 and its README
If you wish to use lint-staged in a multi package monorepo, it is recommended to install husky in the root
package.json.
Check also your husky configuration, as in here.
I've "
.gitignore" file in client folder. Can it affect on this issue?
If nothing is added, you can check if that is because of any ignore rule with:
git check-ignore -v -- client/aFile_that_should_be_added
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