libgit2 / libgit2sharp

Git + .NET = ❤
http://libgit2.github.com
MIT License
3.15k stars 887 forks source link

Local push doesn't (yet) support pushing to non-bare repos #1938

Closed amitcoh8 closed 2 years ago

amitcoh8 commented 2 years ago

Hey, trying to push a new branch to remote but getting the following error:

LibGit2Sharp.BareRepositoryException: local push doesn't (yet) support pushing to non-bare repos.

Isn't there a way to have a non-bare repository and still push changes to it using this library? If not, what is the advised flow for one who want's to have a repo with a working tree but still commit and push regularly?

Thank you.

Version of LibGit2Sharp - 0.26.2 Running on MacOS, .NET version 5.0