git - How to correctly use GitHub -


i have private (paid) github repository enables me have 5 total amount of repositories in (basic account)

i have created repository, in have created master, dev, , vs1, vs2, vs3 branch

the idea (mine idea) is:

master should "base" code of custom theme, base code shared (and same) on branches

dev branch, develop , test master, if good, commit master.

vs1, vs2 , vs3 more developed (advanced) versions of master theme. specify, versions of master theme more functionality, different options, etc. of course, each vs, has dev, thats not matter now.

problem is:

let's assume, change file structure in dev(of master), remove files, , add files (or folders) commit master. master has newly added changes, still keeps older (removed in dev) files+folders in it!

how can "sync" master properly, files got removed in dev removed in master?

and second issue, since share code across branches, how can simultaneously sync dev, master, , vs1, vs2, vs3 "updated" changes make in dev? (but of course, changes, not removing additional folders have in vs1, vs2, or vs3)

let's assume have bug in base code (master), fix in dev, commit master.

i of course need update other branches too, since needing update.

the main issue is, committing seems add new data, not remove obsolete folders , files!

i searched long , far in doc, somehow confused should proceed!

should create different repositories , update each one, after removing not anymore needed files, or there faster and, lets honest, more effective way achieve this?

writing this, thought of "branching" each file+folder shared across versions, makes mess bigger!


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -