discord.py commands.group

async def git(ctx):
    if ctx.invoked_subcommand is None:
        await ctx.send('Invalid git command passed...')

async def push(ctx, remote: str, branch: str):
    await ctx.send('Pushing to {} {}'.format(remote, branch))

Here is what the above code is Doing:
1. We create a bot instance and pass in our token.
2. We create a command group called “git” and pass in the bot instance.
3. We create a command called “push” and pass in the command group.
4. We create a function called “push” and pass in the context and remote and branch.
5. We await the context.send() function and pass in our message.