Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8096579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:29:46+00:00 2026-06-05T21:29:46+00:00

So to make a long story short, I’ve been working on a web app

  • 0

So to make a long story short, I’ve been working on a web app for the past few months. Recently I had to get a new laptop and cloned the repository from github onto my new machine… However whenever I commit changes to my app and attempt to use git push -u in the app’s root directory i get the following message:

To git@github.com:acc/etc.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:acc/etc.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.

but when I try git pull git@github.com:acc/etc.git master I get a message telling me that the pull was aborted.

From github.com:acc/etc
* branch master -> FETCH_HEAD
error: Your local changes to the following files would be overwritten by merge:
config/routes.rb
test/fixtures/users.yml
Please, commit your changes or stash them before you can merge.
Aborting

so then i commit my changes using git commit -m 'fixing' and then attempt git pull again.

however this time I got messages stating that practically all my files had an “Auto-Merging CONFLICT”

am i totally screwed with this particular repository? I’m not really sure what to do since git is still somewhat new to me….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:29:48+00:00Added an answer on June 5, 2026 at 9:29 pm

    If the changes aren’t that big, consider making a copy of the entire folder/project in a different directory outside of the project, then git reset --hard HEAD will wipe out, erase and delete your recent changes.
    You can then apply them again individually using your save3d copies for refernce.
    Make sure sure you git add before git commit of course.
    Finally if you get auto commit merge issues you can always just edit the files manually to resolve.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I using a web services to get the value, make the long story short.
To make a long story short... I'm building a web app in which the
I'm going to make a long story short. It's been a while that I
To make a long story short, my terminal was not working so a forum
So to make a long story short. A professor asked this question in class
Short story: I can't make precompiled headers work properly with gcc -c option. Long
To make a long story short, I'm trying to pass a list of dictionaries
Okay so to make a long story short I am using this script in
It's hard to describe the whole problem but to make a long story short,
Long story short, I'm trying to add a few extra items to ViewData to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.