Skip to content

A shell script to clone all projects in a git group using gitlab V4 REST API

Notifications You must be signed in to change notification settings

HughDai/clone-gitlab-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

clone-gitlab-group

使用gitlab v4 api能够克隆一个组下所有的项目的脚本。 A shell script to clone all projects in a git group using gitlab V4 REST API

Manual

Run the script and follow the assistant:

  • install jq
  • replace variable GITLAB_DOMAIN with your gitlab domain like "https://gitlab.hughdai.com"
  • set a environment variable GITLAB_SESSION like 21ab2d2c3cbc4dfc33cafb14084450bf which stored in the browsers cookies as a value to key "_gitlab_session"
  • chmod 777 clone_gitlab_group.sh
  • vim ~/.bashrc
  • alias clone ~/clone_gitlab_group.sh
  • source ~/.bashrc
  • clone your gitlab group path like group/group_a/group_a0

About

A shell script to clone all projects in a git group using gitlab V4 REST API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages