I get git-status at ~/bin:
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# screen/dev/
I run
git add --force screen/dev/
I get the same git-status as before. I add each file in the folder independently, but I get the same git-status.
There is no .git in screen/dev/. The folder seems not to be a sumbodule.
How can you add a folder and its content with force to my git at ~/bin?
You should not need '--force
' or '-f
' option: see git add:
-f
--force
:
Allow adding otherwise ignored files.
In your case, you may not want to add all files, included ignored files under screen/dev directory.
git add screen/dev
should be enough (without options or ending '/')
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