Problem

You have an error like:

fatal: You didn't specify any refspecs to push, and push.default is "nothing".

when doing a git push or pressing the "git push" button in obsidian.

Solution

Running this git command in the terminal may fix your problems:

git config push.default current

After running this command, you should see the following in the .git/config file:

[push]
	default = current

Afterwards, you should be able to do a git push or press the "git push" button in obsidian without issues.

References

Table of Contents


Updated on August 7, 2025