merge - Tell git to always ignore some file/folders when merging -


suppose project has following folders:

  • core
  • src

and have branches: master , testbranch

src in master , src in testbranch contains different content.

i want tell git not merge src folder when merging master , testbranch.

in other words, want merge core folder between branches.

also, want git track src folder individual branches usual files.

is there possible solutions?

as per experience it's not possible using single repository. can use git sub-module main branch. src folder git submodule. , project folder main repository contain core src folder git submodule. ( or vice-versa )


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -