Skip to content

Instantly share code, notes, and snippets.

View onthedesk's full-sized 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
#!/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