Can two servers connect to the same AWS CodeCommit repository?

0

Enter image description here Can two servers connect to the same AWS CodeCommit repository?

Is there any possibility of error or conflict?

질문됨 2년 전320회 조회
1개 답변
1

Yes, any number of servers or computers can clone a AWS CodeCommit repo. Since CodeCommit uses Git and Git is a distributed revision control system, it means that each clone is a complete copy of the Git database. If you and your team are trying to commit conflicting changes to a file in the same branch on CodeCommit, whoever is trying to make the last commit will need to reconcile those conflicts before Git will allow the commit to happen.

Here are our docs on connecting to a Git repo in AWS CodeCommit https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-connect.html

Here are the basics of how merging works in Git - https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging

profile pictureAWS
micah
답변함 2년 전
  • I would like to clarify more on this query. Two servers are Gitlab servers and we want to mirror repositories from these server to same AWS codecommit respository. Will there be any conflict?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠