Comments (4)
@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.
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.
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.
great! Thank you so much!
from vimwiki-sync.
Related Issues (11)
- It pushes but doesnt pull HOT 5
- FR: Customizable commit messages HOT 1
- Vimwiki Diary HOT 4
- Don't push when in conflict HOT 6
- Added, but not committed HOT 5
- job_start is not available on neovim HOT 4
- Makes autocommits in every git repository HOT 4
- User manual needed HOT 9
- Shell is assumed to be bash HOT 2
- question: how dow vimwiki-sync syncronize task warrior "automatically"? HOT 1
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 vimwiki-sync.