Albert

Posts categorized in ‘arch’ (6)

How to list all projects in Github

Related notes How to list all projects in Gitlab, How to list all projects in BitBucket Install the github-cli with: pacaur -S github-cli Auth with: gh auth login Once configured, the magic line to list all the repos by LRU is: gh repo list -L 3000 --json nameWithOwner --jq .[].nameWithOwner

How to list all projects in BitBucket

Related notes How to list all projects in Gitlab, How to list all projects in Github Install the bbcli with: pacaur -S bbcli Auth with: bb auth login At the writing of this, the tool doesn’t seem to support oauth and bitbucket seems to be enforcing it recently. So I am abandoning this. I think I will move out of bitbucket anyway.

How to list all projects in Gitlab

Related notes How to list all projects in Github, How to list all projects in BitBucket I have tested the glab tool and apparently there should be a way to list all projects but I couldn’t do it. Maybe the arch linux package is still not updated and there is no aur package, so… I searched for an alternative and luckily there is always a python tool/module to help us out… so I installed python-gitlab-cli.

How to use tsrc to manage multiple git repositories and remotes

Related notes How to list all projects in Gitlab, How to list all projects in Github Install the package pip install --user tsrc Create the manifest repository Create a new repository named manifest Create a file manifest.yml with the following content: repos: - dest: org branch: master remotes: - name: origin url: git@github.com:<user>/<repo>.git - name: https url: https://<user>:<token>@github.com/<organization>/<repo>.git - name: nas url: ssh://<user>@<server>:<port>/<path>/<repo>.git This will create the setup for a repository that always stays in sync across all the remotes.