git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Command line query for teams

From
Michiel Beijen <mb@x14.nl>
Date
Dec 4, 2025, 08:34 UTC
Message-ID
<k-decXSZ9QGZzgAzy5RoGwHGYOyGjmCnHpa951-iEy2DWj9cjViEaET6xO1HuAd-Dz23x6VYAtlfE8USIyH1zsHtsfAah6w8WllZPn8qP88=@x14.nl>
In-Reply-To
<PH7PR15MB617958EEAF07E4C5F8CDF0C5FBA6A@PH7PR15MB6179.namprd15.prod.outlook.com>
Hi Mark,
On Thursday, December 4th, 2025 at 06:10, Mark Boonie <boonie@us.ibm.com> wrote:
> I'm a git very-newbie, still trying to find my way around, so I apologize if the answer to this question is somewhere obvious to everyone but me. I'm looking for a command that will return the teams that I'm on. Someone gave me the URL https://github.ibm.com/orgs/ztpf/teams?query=+members%3Ame, which gives me the information in a GUI, but I would like to get the information from the command line. Any suggestions?
What you're looking for is not a git feature but a feature from GitHub. GitHub takes the git source control system and adds authentication, issues and pull requests and many more things 'on top'. GitHub has their own command line utility called 'gh' that you can install, see https://cli.github.com/
However it does not expose the info you're looking for directly. You can use it to request the teams in a given organization, and then you can request for each teams the members and check if you are in it.
I hope this helps,

-- Michiel

Previous: Mark BoonieNext: rsbecker@nexbridge.com
Message 2 of 3 in “Command line query for teams”
  1. Mark BoonieDec 4, 2025
  2. Michiel BeijenDec 4, 2025
  3. rsbecker@nexbridge.comDec 4, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.