search

Home  >  Q&A  >  body text

Ignore specified modifications when git add

There are currently two branches, master and b branch
Every time a file is modified, a lot of files will be generated after compilation, and some of the files need to be submitted to the master branch, and some need to be submitted to the b branch
How to ignore the files of another branch when executing git add under a certain branch

巴扎黑巴扎黑2792 days ago894

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-05-02 09:42:29

    Just configure different .gitignore for the two branches.

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-02 09:42:29

    git add + the file name you need to submit

    reply
    0
  • Cancelreply