Replies: 4 comments 1 reply
|
Not a feature of ghorg yet but this would be great I'll look into it. |
0 replies
|
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... |
0 replies
|
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. |
1 reply
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions