|
Note: this command currently only works with github repositories! |
https://docs.github.com/en/rest/repos/forks?apiVersion=2022-11-28#create-a-fork
And allowing git clonefork to detect, if the link provided is connected to a repo that is not created by the current user, we will automatically create a fork repo for them and do the remote config.
If the link provided is connected to a repo that is created by the current user, we will only do the remote config.
e.g:
git clonefork <upstream> will create the fork repo in my account
git clonefork <Leo6Leo/reponame> will not create the fork repo
git-utils/README.md
Line 27 in d997ab1
https://docs.github.com/en/rest/repos/forks?apiVersion=2022-11-28#create-a-fork
And allowing
git cloneforkto detect, if the link provided is connected to a repo that is not created by the current user, we will automatically create a fork repo for them and do the remote config.If the link provided is connected to a repo that is created by the current user, we will only do the remote config.
e.g:
git clonefork <upstream>will create the fork repo in my accountgit clonefork <Leo6Leo/reponame>will not create the fork repo