title: How to create release excluding certain files in Git
body: <p>In my git project, the <strong>master</strong> and <strong>dev</strong> branches are both at the same commit. They include a number of translation/layout files that I am currently working on, but are not completed. I need to build a new release of the project which excludes these files, but will almost certainly require some additional changes to other files.</p>
  
  <p>If I create a new branch <strong>rel</strong>, delete the relevant files from <strong>rel</strong> branch and work towards a releasable version, what is the best way of then merging the changes from rel back into dev without git deleting these files from <strong>dev</strong>? Is there a better way of achieving the same thing?</p>
  
  <p>e.g. before merge</p>
  
  <pre><code>dev
    - code1
    - code2
    - trans1
    - trans2
    - layout1
    - layout2
  
  rel
    - code1
    - code2 (modified)
    - trans1 (modified)
    - layout1 (modified)
  </code></pre>
  
  <p>after merge</p>
  
  <pre><code>dev
    - code1
    - code2 (modified)
    - trans1 (modified)
    - trans2
    - layout1 (modified)
    - layout2
  </code></pre>