Make a file from the vendor folder

2

My vendor folder is by default skipped and I know this is the right one, but it happens that I need to commit a specific file that is in that folder, would it have? If not, what other solution can I adopt?

    
asked by anonymous 26.09.2016 / 16:15

1 answer

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 files to a commit , except for a single file:

git add -u
git reset -- pasta/arquivo.txt

See more at Documentation .

    
26.09.2016 / 16:22