Reputation: 183
:)
I have a production *nix server that gets the updated files from github using "git pull".
My problem is that there are outdated versions of some plugins in "app/code/community/", which would be pulled and would overwrite my local (up-to-date) files and folders.
I do not know how to tell git to just ignore this directory when I pull from github... Can anybody help me out here?
Thanks in advance!
Chris
Upvotes: 0
Views: 1123
Reputation: 1833
You can do the following:
git pull
it will replace you {up-to-date} files with old
git checkout --ours -- <filename>
to revert you files to your version
git add and commit
Hope this solves your problem!
For more details try going through: Simple tool to 'accept theirs' or 'accept mine' on a whole file using git
Happy Gitting!
Upvotes: 1