Some time ago I've posted here my problem with team integration, git and xpages.
After switching from one branch to another all xpages that were changed got broken.
Well all I had to do was turn off design locking and everything was fine.
I'm posting this just in case someone is facing the same issue.