Home > Mobile >  how do you add a folder to git that contains submodules these being the base items that npx (create
how do you add a folder to git that contains submodules these being the base items that npx (create

Time:10-14

So I'm trying to add a folder for an amplify app which I started a react app inside. Doing git add . doesn't transfer the contents of the folder to Github just the folder with nothing inside. doing ```git add -f --all doesn't do anything either.

CodePudding user response:

You can try something like

git add .*/*

Just be careful with other .folders that you have in your dir, you should create a .gitignore file to prevent uploading those folders.

Or in the worst-case scenario you can just run:

git add .<folder_name>/*

CodePudding user response:

ok I figured out what was wrong in the tutorial for this aws amplify module i needed to make the git in the app folder not outside so using git add . worked.

  • Related