Difference between revisions of "Ghorg"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
* https://github.com/gabrie30/ghorg
 
* https://github.com/gabrie30/ghorg
  brew install gabrie30/utils/ghorg
+
  [[brew install]] gabrie30/utils/ghorg
  
 
  [[$HOME/.config/ghorg/conf.yaml]]
 
  [[$HOME/.config/ghorg/conf.yaml]]
Line 12: Line 12:
  
 
  [[ghorg clone all-groups]] --base-url=https://<your.instance.gitlab.com> --scm=gitlab --token=XXXXXX --preserve-dir
 
  [[ghorg clone all-groups]] --base-url=https://<your.instance.gitlab.com> --scm=gitlab --token=XXXXXX --preserve-dir
 +
 +
Alternative: <code>for repo in $(curl -s --header "PRIVATE-TOKEN: your_private_token" https://<your-host>/api/v4/groups/<group_id> | jq -r ".projects[].ssh_url_to_repo"); do git clone $repo; done;</code>
  
  
  
 
== Related ==
 
== Related ==
[[glab]]
+
* <code>[[glab]]</code>
[[gh]]
+
* <code>[[gh]]</code>
[[PRIVATE-TOKEN]]
+
* <code>[[PRIVATE-TOKEN]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 10:15, 5 September 2022

brew install gabrie30/utils/ghorg
$HOME/.config/ghorg/conf.yaml
Example: https://github.com/gabrie30/ghorg/blob/master/sample-conf.yaml
mkdir -p $HOME/.config/ghorg/conf.yaml
touch  $HOME/.config/ghorg/conf.yaml
ghorg clone --help
ghorg clone all-groups --base-url=https://<your.instance.gitlab.com> --scm=gitlab --token=XXXXXX --preserve-dir
Alternative: for repo in $(curl -s --header "PRIVATE-TOKEN: your_private_token" https://<your-host>/api/v4/groups/<group_id> | jq -r ".projects[].ssh_url_to_repo"); do git clone $repo; done;


Related[edit]

See also[edit]

Advertising: