I have file that I need to keep in sync between 2 repos (2 different organizations)
- https://[email protected]/org1/XProject/_git/MyRepoX
- https://[email protected]/org2/YProject/_git/MyRepoY
Both RepoX and RepoY have a file in common "FileA" (to keep in sync)
When a change occurs FileA -Trigger pipeline and "Merge" MyRepoX/FileA into MyRepoY/FileA
I have done the following:
- Created a PAT token from Org1
- Created a PAT token from Org2
- Created pipeline with cmdline script
In the script I did:
- git clone https://@dev.azure.com/org1/XProject/_git/MyRepoX
- git merge https://@dev.azure.com/org1/YProject/_git/MyRepoY
Error "Nothing to merge".
I am a "git novice" what command do I need to do to keep a file in sync between repos?