DEV Community

Melvin Carvalho
Melvin Carvalho

Posted on

1

Adding Gitmark to lazygit

Gitmark is a way to mark your git commits to achieve finalization

Lazygit is a useful tool for those running git on the command line

Lazygit has an interesting feature which lets you add commands to key bindings. Here's how I added a gitmark workflow to lazygit

customCommands:
  - key: 'm'
    context: 'global'
    subprocess: true
    prompts:
      - type: 'menu'
        title: 'Git Mark?'
        options:
          - name: 'trial'
            description: 'trial run'
          - name: 'commit'
            description: 'commit'
            value: '--tag --send --commit'
          - name: 'init'
            description: 'init'
            value: 'init'
    command: 'git mark {{index .PromptResponses 0}}'
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more