Replies: 4 comments 1 reply
-
Not a feature of ghorg yet but this would be great I'll look into it. |
Beta Was this translation helpful? Give feedback.
-
For future reference and fun,
$repo = "https://gitlab.example.com/group1/snippets/99.git,https://gitlab.example.com/group1/snippets/98.git,..."
$repo = $repo.split(",");
foreach ($i in $repo){
$j = "W:\_code\ghorg\snippet\$($i.split('/')[-1])"
git clone $i $j
# cd $j
# git fetch --all
# cd ..
Start-Sleep -m 700
} This should allow quick backup for snippets on the server, but require manual indexing after cloning the snippets, which will be painful if there are a lot of files... |
Beta Was this translation helpful? Give feedback.
-
Been working on some ideas how to do this. Will be similar to the wikis. However I noticed some snippets are not tied to a repo and can be created on the org level instead. Was thinking these can go into a separate folder. |
Beta Was this translation helpful? Give feedback.
-
Hey,
I would like to ask if there is already a feature to clone GitLab's Code Snippets? Maybe I'm missing it.
If not, it would be a great addition to the already existing function to clone wikis.
https://docs.gitlab.com/ee/user/snippets.html
Beta Was this translation helpful? Give feedback.
All reactions