So,
I am current working on a fullstack project. The folder structure of the same looks like following.
/client
/.next
/app
/components
.
.
.
/server
.
.
server.js
.
.
I have initialized git in the top level folder from where I push to a remote github repo. All fine till here.
but, now I have this final build .next folder ready and I want to push only the contents of this folder to a branch in the same repo. I cant figure out around this how to.
I have tried the following git codes
>git checkout gh-pages
>git add /client/.next
>git commit -m "Build"
>git push -u origin gh-pages
and, instead of only pushing the contents of the .next folder it pushed the whole root directory