[go: up one dir, main page]

DEV Community

Melvin Carvalho
Melvin Carvalho

Posted on

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)