Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Git Sync - fatal: Couldn't find remote ref master

first-time plugins

Solved by Paul Hibbitts View solution

Started by Scott Johnson 6 years ago · 2 replies · 3118 views
6 years ago

Developed my grav site locally via MAMP, and deployed to my hosting service. I also went through the process of creating my GitHub repo (currently empty) and using the git sync plugin wizard to establish my web hook.

When saving at the end of the git sync wizard process, I receive:

fatal: Couldn't find remote ref master

I think this is due to an earlier attempt at setting up a repo, and now attempting to make a change to the info referenced in the git sync plugin, but I'm not sure how to move forward. I also considered removing / re-installing the git sync plugin and starting from 'scratch', but the plugin says the entire theme has to be removed in order to remove the plugin (or at least that's how the responding msg reads).

Any help appreciated. I'd really like to setup a GitHub workflow for this grav website.

6 years ago Solution

Hi @rscottjohnson, one thing to make sure of is that there is an initial commit in the repo before you setup Git Sync.

6 years ago

Hi @paulhibbitts,

Thanks for the quick reply. After making an initial commit (but not a 'git push') I was able to get everything working. Now I'm able to edit a page on GitHub and see it immediately reflected on my Grav site and vice versa.

Thanks again.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 80 1 week ago
Plugins · by Xavier, 4 weeks ago
2 84 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1210 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 77 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 104 2 months ago