Question
When using the Git Versioning Pug-In, the questions comes up about how the local repository communicates/synchronizes with the central Git for enterprise.
Answer
If you want to push it remotely, it is recommend to set up a cron job that syncs with your central (remote) repository. It is important that only the local repository provides commits to avoid merge conflicts or any other inconsistent states.
I.e., you have a main local write repository and one remote, read only, repository pulling from that. A possible workflow would be:
git remote add origin ssh://login@IP/path/to/repository git push --set-upstream origin master git push
Comments
0 comments
Please sign in to leave a comment.