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 6018043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:13:01+00:00 2026-05-23T03:13:01+00:00

I am new to Git and this is the first time I have experienced

  • 0

I am new to Git and this is the first time I have experienced a merge conflict. I replaced an image, ran git commit and all was good. What I didn’t realize was that a co-worker had done the same thing and commited their change to the remote repository. Then I ran git svn rebase (since we’re using subversion) and I got myself into a state of conflict.

How can I simply "undo" my commit all together and accept the incoming changes?

Solution

Since I had already committed my change to my local repository, I needed to reset to the commit prior to my latest commit:

git reset --hard HEAD^

Now I am able to get the latest changes from remote:

git svn rebase
  • 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-05-23T03:13:02+00:00Added an answer on May 23, 2026 at 3:13 am

    If your commit is your last commit, you can just use git reset --hard <commit> to reset your repo to the commit before yours. Then just run git svn rebase again. You may also need to run get rebase --abort to get out of the current svn rebase operation.

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

Sidebar

Related Questions

This is my first time using any sort of version control (git) and excited
I'm new to Git, and have set it up and created my first repository.
In Git I can do this: 1. Start working on new feature: $ git
I am new to git, and have a subversion repository that I want to
I am new to Git and I seem to have one branch too many
So I've been using git for the first time, and there is a scenario
I'm new to git and I have a moderately large number of weekly tarballs
We have a Git repository with over 400 commits, the first couple dozen of
I have a directory structure like this: .git/ .gitignore main/ ... tools/ ... ...
According to this page http://www.eecs.harvard.edu/~cduan/technical/git/git-1.shtml A commit object contains three things: A set of

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.