I have main and branch myStudy.
And I want to merge myStudy to main. But I keep facing this issue message.
On branch main
Your branch is ahead of 'origin/main' by 4 commits.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: Modern-JavaScript-Deep-Dive (untracked content)
In order to reflect these 4 commits, I tried to do below:
(1) checkout myStudy (2) git add . (3) git commit -m "~" (4) git push origin main
But when i do (3) commit, it throws same error.
On branch myStudy
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: Modern-JavaScript-Deep-Dive (untracked content)
no changes added to commit (use "git add" and/or "git commit -a")
How to fix it?