AI prompts
base on Integrate Git version control with automatic commit-and-sync and other advanced features in Obsidian.md # Obsidian Git Plugin
A powerful community plugin for [Obsidian.md](Obsidian.md) that brings Git integration right into your vault. Automatically commit, pull, push, and see your changes โ all within Obsidian.
## ๐ Documentation
All setup instructions (including mobile), common issues, tips, and advanced configuration can be found in the ๐ [full documentation](https://publish.obsidian.md/git-doc).
> ๐ Mobile users: The plugin is **highly unstable โ ๏ธ !** Please check the dedicated [Mobile](#-mobile-support-%EF%B8%8F--experimental) section below.
## โจ Key Features
- ๐ **Automatic commit-and-sync** (commit, pull, and push) on a schedule.
- ๐ฅ **Auto-pull on Obsidian startup**
- ๐ **Submodule support** for managing multiple repositories (desktop only and opt-in)
- ๐ง **Source Control View** to stage/unstage, commit and diff files - Open it with the `Open source control view` command.
- ๐ **History View** for browsing commit logs and changed files - Open it with the `Open history view` command.
- ๐ **Diff View** for viewing changes in a file - Open it with the `Open diff view` command.
- ๐ GitHub integration to open files and history in your browser
> ๐งฉ For detailed file history, consider pairing this plugin with the [Version History Diff](obsidian://show-plugin?id=obsidian-version-history-diff) plugin.
## UI Previews
### ๐ง Source Control View
Manage your file changes directly inside Obsidian like stage/unstage individual files and commit them.

### ๐ History View
Show the commit history of your repository. The commit message, author, date, and changed files can be shown. Author and date are disabled by default as shown in the screenshot, but can be enabled in the settings.

### ๐ Diff View
Compare versions with a clear and concise diff viewer.
Open it from the source control view or via the `Open diff view` command.

## โ๏ธ Available Commands
> Not exhaustive - these are just some of the most common commands. For a full list, see the Command Palette in Obsidian.
- ๐ Changes
- `List changed files`: Lists all changes in a modal
- `Open diff view`: Open diff view for the current file
- `Stage current file`
- `Unstage current file`
- `Discard all changes`: Discard all changes in the repository
- โ
Commit
- `Commit`: If files are staged only commits those, otherwise commits only files that have been staged
- `Commit with specific message`: Same as above, but with a custom message
- `Commit all changes`: Commits all changes without pushing
- `Commit all changes with specific message`: Same as above, but with a custom message
- ๐ Commit-and-sync
- `Commit-and-sync`: With default settings, this will commit all changes, pull, and push
- `Commit-and-sync with specific message`: Same as above, but with a custom message
- `Commit-and-sync and close`: Same as `Commit-and-sync`, but if running on desktop, will close the Obsidian window. Will not exit Obsidian app on mobile.
- ๐ Remote
- `Push`, `Pull`
- `Edit remotes`: Add new remotes or edit existing remotes
- `Remove remote`
- `Clone an existing remote repo`: Opens dialog that will prompt for URL and authentication to clone a remote repo
- `Open file on GitHub`: Open the file view of the current file on GitHub in a browser window. Note: only works on desktop
- `Open file history on GitHub`: Open the file history of the current file on GitHub in a browser window. Note: only works on desktop
- ๐ Manage local repository
- `Initialize a new repo`
- `Create new branch`
- `Delete branch`
- `CAUTION: Delete repository`
- ๐งช Miscellaneous
- `Open source control view`: Opens side pane displaying [Source control view](#sidebar-view)
- `Open history view`: Opens side pane displaying [History view](#history-view)
- `Edit .gitignore`
- `Add file to .gitignore`: Add current file to `.gitignore`
## ๐ป Desktop Notes
### ๐ Authentication
Some Git services may require further setup for HTTPS/SSH authentication. Refer to the [Authentication Guide](https://publish.obsidian.md/git-doc/Authentication)
### Obsidian on Linux
- โ ๏ธ Snap is not supported due to its sandboxing restrictions.
- โ ๏ธ Flatpak is not recommended, because it doesn't have access to all system files. They are actively fixing many issues, but there are still issues. Especially with more advanced setups.
- โ
Please use AppImage or a full access installation of your system's package manager instead ([Linux installation guide](https://publish.obsidian.md/git-doc/Installation#Linux))
## ๐ฑ Mobile Support (โ ๏ธ Experimental)
The Git implementation on mobile is **very unstable**! I would not recommend using this plugin on mobile, but try other syncing services.
One such alternative is [GitSync](https://github.com/ViscousPot/GitSync), which is available on both Android and iOS. It is not associated with this plugin, but it may be a better option for mobile users. A tutorial for setting it up can be found [here](https://viscouspotenti.al/posts/gitsync-all-devices-tutorial).
> ๐งช The Git plugin works on mobile thanks to [isomorphic-git](https://isomorphic-git.org/), a JavaScript-based re-implementation of Git - but it comes with serious limitations and issues. It is not possible for an Obsidian plugin to use a native Git installation on Android or iOS.
### โ Mobile Feature Limitations
- No **SSH authentication** ([isomorphic-git issue](https://github.com/isomorphic-git/isomorphic-git/issues/231))
- Limited repo size, because of memory restrictions
- No rebase merge strategy
- No submodules support
### โ ๏ธ Performance Caveats
> [!caution]
> Depending on your device and available free RAM, Obsidian may
>
> - crash on clone/pull
> - create buffer overflow errors
> - run indefinitely.
>
> It's caused by the underlying git implementation on mobile, which is not efficient. I don't know how to fix this. If that's the case for you, I have to admit this plugin won't work for you. So commenting on any issue or creating a new one won't help. I am sorry.
### Tips for Mobile Use:
If you have a large repo/vault I recommend to stage individual files and only commit staged files.
## ๐ Contact & Credits
- The Line Authoring feature was developed by [GollyTicker](https://github.com/GollyTicker), so any questions may be best answered by her.
- This plugin was initial developed by [denolehov](https://github.com/denolehov). Since March 2021, it's me [Vinzent03](https://github.com/Vinzent03) who is developing this plugin. That's why the GitHub repository got moved to my account in July 2024.
- If you have any kind of feedback or questions, feel free to reach out via GitHub issues.
## โ Support
If you find this plugin useful and would like to support its development, you can support me on Ko-fi.
[](https://ko-fi.com/F1F195IQ5)
", Assign "at most 3 tags" to the expected json: {"id":"11442","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"