I just want to push file without edit gitignore
i.e i added /vendor in gitignore. but i need to push one file which is available in /vendor/test.txt
i don't need to push other file except test.txt how can i do that any idea please share
I just want to push file without edit gitignore
i.e i added /vendor in gitignore. but i need to push one file which is available in /vendor/test.txt
i don't need to push other file except test.txt how can i do that any idea please share
See man git-add
:
-f, --force
Allow adding otherwise ignored files.
So run this
git add --force vendor/test.txt
In you .gitignore file
/vendor
!/vendor/test.txt