Answer the question
In order to leave comments, you need to log in
How to commit some files to the master branch and some to a separate branch?
There are two brunches. b0 b1
b0 = master - contains common files
b1 = custom - contains special files for b1
There are thousands of files and directories on b1, some of them are common, some are special
How to add files on b1 that are intended only for b0 and run them and then also for b1 branches?
That is, ideally, say git add "use gitignore-for-b0" - commit / push,
and then git add "use gitignore-for-b1" and commit / push.
Answer the question
In order to leave comments, you need to log in
Prepare a temporary .gitignore file for the first case, put it in the root, then git add -A .
then we return the original .gitignore to its place, commit, push
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question