简体   繁体   中英

Informatica & Git: Version Control

I'm relatively new to Informatica but from what I've been told it seems like Informatica doesn't play nice with third party version control systems like Git because of Informatica's proprietary XML file structure. Unfortunately the default Informatica VCS is not an option for me due to my requirements. Is there a way that I can version control my file system by supporting classic Git operations on other files of mine (eg shell scripts), but only allow complete overrides on Informatica XML files?

Except the way Lasse mentioned to use .gitattributes , You can also specify the merge stratgeies for certain files (xml files) .

Assume you want to preserve the version not to replaced during merge, you can set as below:

  1. In .gitattribute , add the content filename merge=ours .
  2. Define ours merge strategy by git config --global merge.ours.driver true .

Now when you do a merge, git will keep the filename as current version.

More details, you can refer last part (Merge Strategies) in this article .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM