git: how do I merge between branches while keeping some changesets exclusive to one branch?
问题 There's a special place in hell for people who hardcode absolute paths and database credentials into multiple random places in web applications. Sadly, before they go to hell they're wreaking havoc on Earth. And we have to deal with their code. I have to perform a few small changes to one of such web applications. I create a new branch features , and perform a global find & replace to update the paths and credentials to my local environment. I commit that. I also tag this as local . I merrily