I suggest you stage changes in batches and commit. To stage a file, you can either press the +
button adjacent to that file or use the +
button on the top menu to stage all.🚧Go to the GitHub official webpage and log in to your account. Now, on the profiles page, click on the “Create repository” button.You can open it in file manager to see that the only content in the cloned directory is a .git
directory and a README file.
gitignore
code is directly taken from the git plugin documentation.
Usually, this does not need to be pushed to GitHub. So, we will create a .gitignore
file in the root vault location.
CTRL+H
to enable the hidden items and then select all.The folder is hidden, so use CTRL+H
to enable the hidden items and then select all.The folder is hidden, so use CTRL+H
to enable the hidden items and then select all.sudo pacman -S git github-cli
When you press enter, it will open in the browser. You will be prompted to continue as the logged in account.

It will ask some questions, and you can select a choice and press enter. This is shown in the screenshot below:

Step 12: Pull Changes
Use the Pull button in the Obsidian Git control panel.On the next page, enter the code you are provided in the terminal.

Once you have Git and the GitHub tool installed, you need to authenticate it with user credentials.
Wrapping Up
Open Obsidian and click on your vault name in the bottom and select Manage Vaults.With the GitHub or GitLab CLI tool, you can commit and push changes to GitHub/GitLab from the terminal also, in case there is a failure in the Obsidian GUI.