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

  • Home
  • SEARCH
  • 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 9149827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:31:48+00:00 2026-06-17T11:31:48+00:00

i created 3 commits. after that i’ve tried to push my changes to origin/master

  • 0

i created 3 commits. after that i’ve tried to push my changes to origin/master but then i detected that i’m currently in no branch. After that i’ve tried to merge the new commits to origin/master but it failed.
This is the current git reflog:

e664a6d HEAD@{0}: checkout: moving from e664a6d3a47e7036f61d47e69f91bd20235d59b0 to master
e664a6d HEAD@{1}: merge master: Fast-forward
9f5948d HEAD@{2}: checkout: moving from master to origin/master
e664a6d HEAD@{3}: merge HEAD@{3}: Fast-forward
9f5948d HEAD@{4}: checkout: moving from dc325aeb1866e54d068c103cbc75910d4c464d59 to master
dc325ae HEAD@{5}: commit: remove debug from app.php
f5f2d7b HEAD@{6}: commit: add new results to listing

Can anybody tell me what i must to do merge HEAD@{4}-HEAD@{6} into my origin/master and go back to the branch to work with it.

Thank you very much.

  • 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-17T11:31:48+00:00Added an answer on June 17, 2026 at 11:31 am

    You can try and reset master on HEAD@{4}:

    git checkout -B master dc325aeb186
    

    Then try to push.

    Note: in all your tests, don’t forget to save (or at least git stash) any untracked file.

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

Sidebar

Related Questions

Say I created a feature-x branch and merged or rebased with master branch. Now
I'm working on a web site project that is currently tracked in svn but
Today I faced with one problem. My teammate created branch from master. He developed
I was initially in master branch, then I create a development branch and use
I am struggling with something that may sound stupid but : I created a
Let's say I have cloned repository, created new branch Topic1, made changes, commited them
After converting my repository to Git using git-svn, I'm seeing both the original master
Until now, if I ever commited and pushed something wrong to the master branch,
I have two IDbCommand objects that are created from an NHibernate session, and they
I need to recover two Git branches that I somehow deleted during a push.

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.