add git-transfer-repo.sh to README.md

This commit is contained in:
Trevor Batley 2023-06-05 15:41:58 +10:00
parent 15ffd74a3e
commit 485c2090a1

View File

@ -49,20 +49,21 @@ optional parameters, can appear in any order
* \<local\> use local GITEA as source (i.e. copy between organisations on local GITEA)
* \<debug\> run in debug mode
## git-migrate-org.sh
create mirrors of all repos for an organisation in a local GITEA instance
## git-transfer-repo.sh
Transfer a repo to a different user (or organisation)
git-migrate-org.sh <organisation> [<copy|mirror> <review> <target organisation> <debug>]
git-transfer-repo.sh <repository> <source organization> <target organisation> [<local> <force> <debug> <silent>]
* \<organisation\> can be any organisation or user on the remote GITEA instance
* \<repository\> repository name to be transferred (e.g. smeserver-clamav)
* \<source organisation\> to be transferred from (any valid organisation or user)
* \<target organisation\> to be transferred to (any valid organisation or user - you need owner privileges)
optional parameters, can appear in any order
* \<copy|mirror\> will create local repos as either a copy or a mirror of the remote repos (default = copy)
* \<review\> will just list the repos to be migrated, rather than doing it
* \<target organisation\> within your local GITEA, otherwise local user - must exist already
* \<debug\> run in debug mode
* \<noisy\> show each repo being migrated
\<local\> will use parameters set for local repository, else it will use remote
\<force\> will automagically delete an existing target repo, otherwise it will prompt
\<debug\> run in debug mode
\<silent\> suppress success message
## rename-e-smith-pkg.sh
Rename an e-smith package as smeserver and change relevant files