2
My vendor folder is by default ignored and I know this is the right one, but it turns out I need to commit a specific file that is in this folder, would that be possible? If not, what other solution can I adopt?
2
My vendor folder is by default ignored and I know this is the right one, but it turns out I need to commit a specific file that is in this folder, would that be possible? If not, what other solution can I adopt?
2
If the file is ignored, you can force the addition of these files:
git add --force -- arquivo1 arquivo2
git commit -m "adicionar arquivos anteriormente ignorados"
git push
If you want to add all the files to one commit
, except a single file:
git add -u
git reset -- pasta/arquivo.txt
See more on Documentation.
This solution will help me a lot at the moment, thank you very much!
@Raylansoares, you’re welcome =)
Browser other questions tagged git commit
You are not signed in. Login or sign up in order to post.
git add vendor/nome-da-pasta
– Diego Souza
The vendor folder serves literally for software produced by third party, you can try to make a pull request of your change to the original author or if he does not like or you have no interest in contributing you can make a Fork of the original and work with Fork
– Rafael Mena Barreto
I will consider doing this @Rafaelmenabarreto, thank you
– Raylan Soares