Giter Club home page Giter Club logo

Comments (10)

 avatar commented on May 23, 2024 3

i fixed it with this thread: https://stackoverflow.com/questions/35942754/how-to-save-username-and-password-in-git

it works perfectly fine now

from obsidian-git.

Vinzent03 avatar Vinzent03 commented on May 23, 2024

Did you set your email and username for git? See https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address#setting-your-commit-email-address-in-git and https://docs.github.com/en/github/using-git/setting-your-username-in-git#setting-your-git-username-for-every-repository-on-your-computer

from obsidian-git.

bnonn avatar bnonn commented on May 23, 2024

I seem to be getting the same problem.

  • On startup, I get the following error:
    obsidian-git-startup-error
  • In the console this is confirmed:
    Screenshot from 2021-03-25 12-52-33

Although this may be related to kemayo/sublime-text-git#176, my suspicion is that it's a Flatpak issue. I have Obsidian installed on Pop_OS via the Pop Store, which uses Flatpak. As I understand it, Flatpak runs in some kind of sandbox, and perhaps this is preventing it from having access to the normal Git credentials? If I simply run git pull on a terminal in my vault directory, it works fine. I was using Bryan Jenks' git setup (bash script + cron job) before trying this plugin, but I'd like to be able to integrate git with Obsidian more directly, as it means less technical setup to have to remember.

from obsidian-git.

Vinzent03 avatar Vinzent03 commented on May 23, 2024

I am using it with Flatpak on KDE neon and it works fine. Flathub changed some configs, why I suggest running the following:

$ flatpak update md.obsidian.Obsidian
$ flatpak override --reset md.obsidian.Obsidian
$ flatpak run md.obsidian.Obsidian

flathub/md.obsidian.Obsidian#5 (comment)

And if you run git push in the console, do you have to enter username, password or similar?

from obsidian-git.

bnonn avatar bnonn commented on May 23, 2024

Ah, perfect, thank you. Running Obsidian through flatpak presented me a login prompt for Github, and after entering my credentials there it is working correctly.

I think it would be a good idea to have some kind of message somewhere prominent with these instructions for other folks in my situation? Would save you some bug reports :)

from obsidian-git.

Vinzent03 avatar Vinzent03 commented on May 23, 2024

I already added some instructions, but maybe it's a good idea to add this solution for users, who already installed Obsidian with Flatpak a while ago.

from obsidian-git.

jesuslencina avatar jesuslencina commented on May 23, 2024

flatpak run md.obsidian.Obsidian

Hey there. Thank you for this solution. I did have the latest flatpak version, but running with flatpak run md.obsidian.Obsidian allowed me to pull the repo by typing my credentials in the terminal.

However, looks like I have to do so for every pull/push, which is really unpractical, specially considering I've set it to backup every 30 minutes. Is there any fix to this? I'm not looking at the terminal while I write my notes.

By the way, I'm on the latest stable elementaryOS, with Obsidian installed from flatpak (as mentioned above)

from obsidian-git.

Vinzent03 avatar Vinzent03 commented on May 23, 2024

I guess you are using https to authenticate. The only way would be to cache the credentials from the terminal. Or you use ssh and add it to the ssh-agent

from obsidian-git.

Vinzent03 avatar Vinzent03 commented on May 23, 2024

Closing because of no response of @Bejasc .

from obsidian-git.

Komi7 avatar Komi7 commented on May 23, 2024

if you are arch user than download pacman version (not AUR version)

from obsidian-git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.