Giter Club home page Giter Club logo

Comments (13)

Vinzent03 avatar Vinzent03 commented on September 22, 2024

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.

back-lacking avatar back-lacking commented on September 22, 2024

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.

Vinzent03 avatar Vinzent03 commented on September 22, 2024

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.

back-lacking avatar back-lacking commented on September 22, 2024

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.

back-lacking avatar back-lacking commented on September 22, 2024

image
here is the commits related to changing the gitignore and removing workspace.json.
image
here is the commit related to the gitignore.

from obsidian-git.

Vinzent03 avatar Vinzent03 commented on September 22, 2024

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.

back-lacking avatar back-lacking commented on September 22, 2024

i may be very dumb
just checked the gitlab repo, and workspace.json isnt there

from obsidian-git.

back-lacking avatar back-lacking commented on September 22, 2024

as for how i deleted the workspace.json file, i deleted it from the gitlab repo using gitlabs "delete file" option

from obsidian-git.

back-lacking avatar back-lacking commented on September 22, 2024

image
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.

Vinzent03 avatar Vinzent03 commented on September 22, 2024

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.

back-lacking avatar back-lacking commented on September 22, 2024

image
shit (same thing on windows)

from obsidian-git.

Vinzent03 avatar Vinzent03 commented on September 22, 2024

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.

back-lacking avatar back-lacking commented on September 22, 2024

fair enough, i will take a look at that article when i can.

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.