paint-brush
How to write Bash one-liners for cloning and managing GitHub and GitLab repositoriesby@victoria
797 reads
797 reads

How to write Bash one-liners for cloning and managing GitHub and GitLab repositories

by Victoria Drake6mAugust 13th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A Bash one-liner can easily clone GitHub-hosted repositories to a new machine. It can also be used to create and push GitLab-based backups using Bash scripts. The Bash script uses each line (or URL) to run a command for each line of input. It uses the name of the directory on your machine that contains the repository in the repository cloned with the command: repos.txt. With the command above, it splits off the directory containing the repository, splitting off the file as a larger file.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How to write Bash one-liners for cloning and managing GitHub and GitLab repositories
Victoria Drake HackerNoon profile picture
Victoria Drake

Victoria Drake

@victoria

Webmaster at https://victoria.dev.

About @victoria
LEARN MORE ABOUT @VICTORIA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Victoria Drake HackerNoon profile picture
Victoria Drake@victoria
Webmaster at https://victoria.dev.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite