Skip to content

Add more lazygit custom commands #7

@connorads

Description

@connorads

Summary

Expand lazygit custom commands with common operations.

Changes

File: ~/.config/lazygit/config.yml

customCommands:
  - key: 't'
    command: 'git stash && git pull --rebase && git stash pop'
    context: 'files'
    description: 'Stash, pull, and pop'
  - key: 'A'
    command: 'git add -A && git commit --amend --no-edit'
    context: 'files'
    description: 'Amend all to last commit'
  - key: 'P'
    command: 'git push --force-with-lease'
    context: 'localBranches'
    description: 'Force push (with lease)'

Effort

Quick win (~10 mins)

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions