git - Create a Patch file excluding some files -


I want to create a patch file that will patch only some files from dir2 to dir1. Both are the same git repos of the same project, though dir2 has a modified high revised version earlier, I only want to patch the changes made to some files. There are additional files in Dir2 which do not have 1 redirect. Mainly in DIR 1 there are config files I do not want to change dir2, because this will break my local configuration. How do I change these special files?

To get the files that share dir1 and dir2 ...

  CD dir1 tree-aif --noreport & gt; Dir1.out cd dir2 tree-aif --noreport & gt; Dir2.out cat dir1.out dir2.out | Sort | UNIK- d & gt; Share.out  

(You may use ls to get the listing, but I can never find it right)

Changes in DIR2 files, which are also in DIRO 1 after the given command ...

  cd dir2 git diff & lt; Commit & gt; - 'Pussy shared' & gt; Dir2.patch  

Then apply that code to dir1 using the patch and the appropriate -p flag. Whatever code you do not want to change, go to git checkout & lt; Dir1 / somefile & gt; then add and comment normally.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -