How can I ignore a specific file in LibGit2Sharp when I merge from one branch to another?
问题 How can I ignore a specific file in LibGit2Sharp when I merge from one branch to another? For example, I have a database.xml metadata file in the main branch, lets call it branch (A); But then I diverge to branch (B). I then make changes and commit to the database.xml file in branch A, this results in branch (B) being out of date. However, I want to keep the database.xml file from branch B and not merge it with branch A. How is this done in LibGit2Sharp? 回答1: Generally speaking, you want to: