Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pismy/git-clone-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Clone Group

Command-line tool to clone at once a complete GitLab group with projects and sub-groups (recurses).

Usage

Clone the repository, install Maven, Java, and run:

mvn clean package

Then start the tool by running:

java -jar target/git-clone-group-1.0.0-SNAPSHOT.jar

Once in the tool shell, you can use the following:

# global help
shell:>help

# help on stats command
shell:>help clone_group 

NAME
	clone_group - Clones locally a GitLab/GitHub group

SYNOPSYS
	clone_group [-D] file  [-U] string  [-T] string  [[-P] protocol]  

OPTIONS
	-D or --dest  file
		Destination directory
		[Mandatory]

	-U or --url  string
		Group url
		[Mandatory]

	-T or --token  string
		API token
		[Mandatory]

	-P or --protocol  protocol
		Protocol to use ('https' or 'ssh')
		[Optional, default = https]

# exit shell
exit

Before running the program, obtain a GitLab API token.

Finally the program can be run as:

shell:> clone_group -D /tmp -U https://gitlab.com/my-group -T myApiToken -P ssh

License

This code is under Apache-2.0 License

About

Command-line tool to clone at once a complete GitLab group with projects and sub-groups.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages