Skip to main content
Photo of DeepakNess DeepakNess

Google Antigravity stage, commit, and sync

Unproofread notes

When you're not working on a very serious project and just vibe coding, imagine just pressing a simple keyboard shortcut to stage all changes, commit with AI-generated commit message, and also sync with your git provider like GitHub. I set up this cmd + enter keybinding in my Google Antigravity IDE that immediately stages all changes, commits using AI-generated messages, and then syncs with my GitHub repo.

For this, you need to open your Antigravity IDE, press cmd + shift + p and search for "Preferences: Open Keyboard Shortcuts (JSON)" and then copy-paste the below keybinding JSON.

[
    {
        "key":"ctrl+enter",
        "command":"runCommands",
        "args":{
            "commands":[
            {
                "command":"git.stageAll"
            },
            {
                "command":"antigravity.generateCommitMessage"
            },
            {
                "command":"git.commitAll"
            },
            {
                "command":"git.sync"
            }
            ]
        }
    }
]

I have another post about doing the same in Cursor and VS Code where you can set up the same keybindings. Most of the thing are done the same way, and only the command for generating commit messages are different.

Comment via email