• Hi, trying to set up a Revisr workflow and I’m stuck as I’m fairly new to git. Basically I have a live site I want to clone into a github repo (to then clone into a dev staging server) but get an error ( Error pushing to the remote repository. The remote repository could be ahead, or there may be an authentication issue.) every time I try to push it to github. I have the correct Repo name in the remote setting and the https remote url shows a success method.

    Also, when I installed revisr it asked to create a local repo and I got a message that it created it successfully.. but I have no idea where it is (cant find on the server at all) or what my username and email for this should be. I’m trying to avoid having a local wordpress copy at all and just work on the staging server instead. Any idea what I’m doing wrong here? The documentation hasn’t helped me figure it out. Thank you!

    https://www.ads-software.com/plugins/revisr/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Expanded Fronts

    (@expandedfronts)

    Hello,

    For the authentication issue, you mentioned you’re using HTTPS- did you enter the password in the URL like it is in the documentation:

    For example: https://username:[email protected]/username/repo.git

    When you click “Create Repo” it puts your current WordPress install into a repository… So if you’re using the standard WP folder structure, there should be a “.git” folder in the same folder as your wp-config.

    The username and email can be anything, but should match your GitHub username and password if you want GitHub to automatically link your commits to that account.

    Thread Starter gabernx

    (@gabernx)

    Hi, yes the password is in url and everything else follows this template (I assume the little “success” message further confirms this). I also thought the repo would be created in the root wordpress directory, but there is no .git folder there at all (and I do have hidden files visible) despite revisr giving me a message that the local repo was created successfully. Should I try to create it manually? I tried the same on a local copy and it did create the .git file but I still get the same error trying to push to an empty github repo.

    Plugin Author Expanded Fronts

    (@expandedfronts)

    Hi,

    Yes, you could try a “git init .” in the WordPress root, although it’s unusual that Revisr told you it was created successfully.

    On the local copy, are you able to commit files?

    Thread Starter gabernx

    (@gabernx)

    Yes I am able to commit files, but get an error when pushing to an empty github repo. Is there a way to clone a new repo instead perhaps? I

    Plugin Author Expanded Fronts

    (@expandedfronts)

    Hello,

    I’m not sure if I understand you correctly, but yes, you can clone a new repo to the server from GitHub, and add WordPress and Revisr, and Revisr will pick up the existing settings that were configured automatically when cloned from GitHub.

    I do so often myself as it can save some time configuring things.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't figure out how to clone a live site to a remote repo’ is closed to new replies.