Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't push changes to GitHub
    text
    copied!<p><strong>Update:</strong> I couldn't get either of the first two solutions provided to work, so I'm providing more detail and setting a bounty. </p> <p>I have previously forked a github project called Enki (a Rails blogging platform) and then customized it and deployed it on Heroku. </p> <p>Now I want to start a new Enki blog. I can't fork Enki again, because it's already forked and customized for the first blog. I now cloned it from the author's page, and wanted to add a new repository on my github page so that I could deploy it to Heroku. Here's step by step instructions that I followed</p> <pre><code>git clone https://github.com/xaviershay/enki.git valentines cd valentines git checkout -b myvalentines bundle install cp config/database.example.yml config/database.yml git init </code></pre> <p>Message</p> <pre><code>Reinitialized existing Git repository in /Users/mm/Sites/valentines/.git/ </code></pre> <p><strong>1)</strong> Why the existing repository? Did I do something wrong? So it's going into the same repository (as the original fork?) even though I've named it something else? </p> <p>Made code changes then did </p> <pre><code>git add . git commit -m "made code changes" 2 files changed, 193 insertions(+), 157 deletions(-) rewrite Gemfile.lock (70%) </code></pre> <p><strong>2)</strong> Does the fact that it's writing Gemfile.lock mean that it's not changing the branch but rather the master? </p> <p>Next I created a repository on GitHub</p> <pre><code>git remote add valentines git@github.com:Username/Valentines.git git push valentines master </code></pre> <p>As you can see I, following Ksol's suggestion, used a different word than origin but it didn't work <strong>3) Problem -</strong> the GitHub repository 'Valentines' did not show the code changes that I made, but was rather the original gem</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload