Skip to content

Instantly share code, notes, and snippets.

Avatar

Alfred Zhao onthedesk

View GitHub Profile
@onthedesk
onthedesk / sync-projects
Last active July 1, 2018 02:40 — forked from JonasGroeger/sync-projects
Gitlab: Clone / Pull all projects in a group
View sync-projects
#!/usr/bin/env bash
# Documentation
# https://docs.gitlab.com/ce/api/projects.html#list-projects
# NAMESPACE="YOUR_NAMESPACE"
BASE_PATH="YOUR_GIT_SERVER_PATH"
# PROJECT_SEARCH_PARAM="YOUR_SEARCH_PARAM"
if [ -z "$GITLAB_PRIVATE_TOKEN" ]; then