How would you fork an AWS CodeCommit repo to another CodeCommit repo?

我只是一个虾纸丫 提交于 2021-02-11 12:53:45

问题


In github there is a fork button to fork a repo into a new repo you control.

According to are git forks actually git clones? a github fork is a clone on the server side.

If you read the git-scm documentation it specifically says to click the fork button in Github.

I assume because there is no fork button in AWS CodeCommit there is not similar functionality. So, is there a way to do this with the native git cli?


回答1:


I don't think there is any option in AWS CodeCommit to fork. What you can do is

  • Clone the repository.
  • Create new repository in AWS CodeCommit.
  • Push the code to new repository.

Check this link.




回答2:


The fork option in GitHub copies the repository in to contributors GitHub account. In code commit all the users belong to the same account. The users are differentiated as IAM users and not as separate accounts. Because of this you don't see separate fork option for every IAM user.

Hassan's answer is the right direction to migrate the repo.



来源:https://stackoverflow.com/questions/58466367/how-would-you-fork-an-aws-codecommit-repo-to-another-codecommit-repo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!