Comments (13)
I assume you already committed the file before adding it to .gitignore. You need to run git rm --cached <file>
to remove it from the repo.
from obsidian-git.
I assume you already committed the file before adding it to .gitignore. You need to run
git rm --cached <file>
to remove it from the repo.
so ive done that, tried it for a few days, made a few changes, and i still see the file being modified. im looking at the commits on gitlab (obsidian notes stored on there), i would see the workspace.json file as a file that is modified. ive tried to remove workspace.json from the gitlab repo, but that didnt succeed.
from obsidian-git.
I can assure you that if you properly write your .gitignore file and to the rest correct, it will work. Did you commit after running git rm --cached .obsidian/workspace.json
? What do you mean with deleting the file from gitlab didn't work? If you run the rm
command locally, commit and push, the file should be removed on gitlab as well. If you now do some changes in obsidian, the workspace.json file should be ignored.
from obsidian-git.
Im not sure if i pushed the change. I will look at the commit log on gitlab. I will do it again in a couple minutes in order to confirm. I commited and pushed the gitignore seperately. Ran the git rm command, not sure if i pushed the change.
The git ignore is just one line, .obsidian/workspace.json
from obsidian-git.
here is the commits related to changing the gitignore and removing workspace.json.
here is the commit related to the gitignore.
from obsidian-git.
But is the file now deleted in the repo on gitlab? You deleted the workspace file before fixing your .gitignore
. If not try again to delete the workspace file via my provided rm --cached command.
from obsidian-git.
i may be very dumb
just checked the gitlab repo, and workspace.json isnt there
from obsidian-git.
as for how i deleted the workspace.json file, i deleted it from the gitlab repo using gitlabs "delete file" option
from obsidian-git.
basically, went to the file, and pressed delete. which automatically made a commit for deleting the file
also, im checking the other commits i made that day, seems like the workspace.json wasnt included in the commits.
there are a few commits that did include changes to workspace.json. (made after the commits for deleting the json and changing git ignore). i also use this on windows so ill see if the same issue is replicated on windows.
from obsidian-git.
I'm really confused by your new edits. I see you are not familiar with git and this is not a support forum for git. So I will try it last time. Go into terminal and delete the workspace.json file like I told you. The file should be marked as deleted now in git status. Now commit and push the changes. The file should now also be gone from the gitlab repo.
from obsidian-git.
from obsidian-git.
As this is not an issue with the plugin, please try to find other sources on the internet to fix your issue. Like this one: https://www.atlassian.com/git/tutorials/saving-changes/gitignore I can't explain you every step on how to use git, now that you are even talking about multiple machines.
from obsidian-git.
fair enough, i will take a look at that article when i can.
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 9
- [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 2
- [Bug]: Obsidian freezing from having any setting enabled HOT 2
- 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 4
- [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 8
- [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.