🫥 Copy repository without the git information for self-managed gitlab, very fast.

Overview

English | 简体中文

degitlab

🫥 degitlab -> de-git-lab
Copy repository without the git information for self-managed gitlab, very fast.

Why?

In self-managed GitLab, I made some code templates, such as ts-starter, which is a code template based on TS. It contains the development specification configuration of the team and some specific configurations for internal use in the company. In order to share it with other colleagues, I cannot place it in Github. So I put it in self-managed GitLab, and I can do it when I need to run degitlab -n ts-starter -o ./ts-project.

For another example, I created a repository containing various IDE configurations, also based on our team's specifications, and if I use VSCode, I can run degitlab -n ide -o .vscode -f .vscode, and If I use another IDE, I can also use -f to filter any configuration folder in the project. This tool has greatly improved project standardization and development efficiency.

How?

When you run degitlab -n some-group/some-repo -o ./, it will find the latest commit on the remote and download the associated tar file to ./ if it doesn't already exist locally. (This is much quicker than using git clone, because you're not downloading the entire git history.)

Configuration

Since self-managed git usually come with authentication, so we need to add personal access token.
You don't need to set it if you have already logged in locally.

# ~/.gitconfig

[core]
  degitlabPAT = <personal access token>
  degitlabHost = <host>

Usage

// Use the project name to clone the project and automatically filter the .git directory.
degitlab -n degitlab

// Specify the path to clone, default is current directory.
degitlab -n degitlab -o ./dist

// Filter the directory.
degitlab -n degitlab -o ./dist -f /src/index.ts

// Filter the multiple directories.
degitlab -n degitlab -o ./dist -f /src/index.ts -f /src/index2.ts

// Help.
degitlab -h

Sponsors

License

MIT License © 2022 Dohooo

You might also like...

Serverless boilerplate CLI tool: GitLab and GitHub CI/CD, DataDog, Multi-Region, and many more setups.

Serverless Full Boilerplate This is a CLI tool to create Serverless boilerplate applications. Ready to deploy in a few seconds. Usage npm i -g create-

Nov 7, 2022

Software for the next generation of social media. https://gitlab.com/soapbox-pub/soapbox-fe

Software for the next generation of social media. https://gitlab.com/soapbox-pub/soapbox-fe

Soapbox FE Soapbox FE is a frontend for Mastodon and Pleroma with a focus on custom branding and ease of use. It's part of the Soapbox project. Try it

Dec 30, 2022

Tool for GitHub/GitLab to keep Repositories/Projects you are interested in and their Pull/Merge Requests in desktop Tray Menu

Tool for GitHub/GitLab to keep Repositories/Projects you are interested in and their Pull/Merge Requests in desktop Tray Menu. More info in User Guide.

Jul 31, 2022

This is a bot for Telegram that can be used to receive webhook notifications from Gitlab. It is built with the Next.js API.

This is a bot for Telegram that can be used to receive webhook notifications from Gitlab. It is built with the Next.js API.

Telegram Bot for Gitlab Webhook 🦉 Note This project is still in development. Just relax 🙂 This is a bot for Telegram that can be used to receive web

Oct 22, 2022

An exercise in building a very minimal (and very stupid) in-memory SQL-like database for educational purposes.

Stupid Database This is an exercise in building a very minimal (and very stupid) in-memory SQL-like database for educational purposes. None of this co

Dec 20, 2022

A Very Good Documentation Site created by the Very Good Ventures Team 🦄

A Very Good Documentation Site created by the Very Good Ventures Team 🦄

Very Good Docs Site Developed with 💙 by Very Good Ventures 🦄 A Very Good Docs Site created by the Very Good Ventures Team. Generated by the Very Goo

Nov 2, 2022

This is our second school project in HTML 5, CSS 3 and JS. In this website you can find very interesting information about the countries around the world.

This is our second school project in HTML 5, CSS 3 and JS. In this website you can find very interesting information about the countries around the world.

Team Geonomy 💻 About This is a website about with interatcive map and very interesting information about different coutries 🗂️ Used technologies Use

Nov 23, 2022

The Main Purpose The main purpose of creating an anaonline information system, as an effort responsive to the management of the data of the Members of the Persis Youth based on information technology systems

landing-page-pp landing-page-pp.vercel.app #The Main Purpose The main purpose of creating an anaonline information system, as an effort responsive to

Oct 21, 2022
Releases(v0.0.2)
Owner
東澔
Developers who develop anything.
東澔
🦆 The repository for dealing with all the ducks created and managed by the Fairfield Programming Association.

Download Since the Fairfield Programming Association's duck generator is built on top of node.js and npm, you need to have both of those installed as

Fairfield Programming Association 15 Feb 4, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Adds a section to copy snippet in GitHub repository page.

github-snippets / Snippets section in GitHub repository Adds "Snippets" section in GitHub repository! Note This extension is unofficial. Project Setup

Nanashi. 4 Nov 26, 2022
Primary repository for all information related to Fast-Floward Bootcamp session 1

⏩ Fast Floward Welcome to Fast Floward! We are excited to have you here. This repository is where you will find all content, resources, and links for

Decentology 44 Dec 23, 2022
A Node.js HTTP proxy that tracks managed PaaS account applications and auto-stop&start them

paastis-engine Features Paastis engine is the heart of the Paastis project. Its goal is to monitor and manage (start & stop) PaaS applications based o

null 14 Nov 8, 2022
Repository for hands on practice in Git and GitHub workshop

Git and Github Workshop Jan 2022 Successful contributors ✨ of this project will be featured on the GDSC website so as to bring attraction and learn vi

IIIT Vadodara Open Source 2 Feb 10, 2022
Contented is a Markdown-based authoring workflow that encourage developer authoring within its contextual Git repository.

Contented is a Markdown-based authoring workflow that encourage developer authoring within its contextual Git repository. npm i @birthdayresearch/cont

Birthday Research 44 Jan 7, 2023
Learn Basic of Node Express Server and Git & Github by creating Pull Request in this repository.

hacktoberfest-express-server-2022 Learn Basic of Node Express Server and Git & Github by creating Pull Request in this repository. Special Note For Ev

NetScape-Web 3 Oct 6, 2022