Code Monkey home page Code Monkey logo

Comments (4)

michal-h21 avatar michal-h21 commented on May 22, 2024 1

@usmanity you are right, I've assumed the master branch, which is not a good idea. I've changed that to HEAD in the latest commit. It is also possible to manually select the branch name using new variable:

  let g:vimwiki_sync_branch = "main"

from vimwiki-sync.

michal-h21 avatar michal-h21 commented on May 22, 2024

It definitely isn't by design, changes should be pushed. I've updated the plugin to use a different way how to run Git. Did that help? If it doesn't help, could you create a log file using vim -Verror.txt path/to/wikiindex? It should contain some error messages in the case of fail.

from vimwiki-sync.

usmanity avatar usmanity commented on May 22, 2024

Thanks for the quick response, here's what I got from the error

Executing VimLeave Autocommands for "*"
autocommand call <sid>git_action("git -C " . g:zettel_dir . " push origin master")

:!git -C /Users/muhammad/z/ push origin master

Executing command: "git -C /Users/muhammad/z/ push origin master"

error: src refspec master does not match any
error: failed to push some refs to 'github.com:usmanity/zettelkasten.git'

shell returned 1

Looks like the sync plugin is trying to push to master branch but my branch is called main.

Maybe if the push and pull were done against the current branch e.g. git push origin HEAD, that might work?

from vimwiki-sync.

usmanity avatar usmanity commented on May 22, 2024

great! Thank you so much!

from vimwiki-sync.

Related Issues (11)

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.