Comments (10)
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.
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.
I seem to be getting the same problem.
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.
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.
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.
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.
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.
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.
Closing because of no response of @Bejasc .
from obsidian-git.
if you are arch user than download pacman version (not AUR version)
from obsidian-git.
Related Issues (20)
- [Bug]: Git pull for Git submodules fail when no upstream remote repo defined HOT 2
- [Feature]: Force pull / reset --hard HEAD HOT 6
- [Feature]: Multiple Repository
- [Bug]: plugin is not installing HOT 1
- [Bug]: Android: "%%%%%" on left of each line in source mode HOT 2
- using another git lib on android HOT 3
- [Enhancement] Multiple remotes support HOT 1
- [Bug]: Obsidian freezing from having any setting enabled HOT 1
- Feature request: Support Git move HOT 1
- [Bug]: GPG doesn`t work when program is .sh file or with ~/
- [Feature]: Make Auto Backup commits amendable HOT 1
- [Bug]: Git init doesn't work properly when a custom git-dir value is set through the 'Custom Git directory path' setting HOT 1
- [Bug]: git obsidian error: TypeError [ERR_INVALID_ARG_VALUE]: The argument 'args[6]' must be a string without null bytes HOT 1
- [Proposal]: Rename the plugin to "Git Backup" HOT 1
- [Feature Request]: Push on Close HOT 1
- [Bug]: wrong order in git backup HOT 3
- [Bug]: Freshly installed plugin renders Obsidian unusable! HOT 4
- [Bug]: Persistent Authentication Requests HOT 2
- [Enhancement Suggestion]: Make .git folder outside of value folder by default HOT 2
- [Bug]: Plugin causes Micro lags
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-git.