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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:58:15+00:00 2026-05-27T15:58:15+00:00

I have a file in my GIT repository that I changed through the github.com

  • 0

I have a file in my GIT repository that I changed through the github.com editor.

Now, I went and change this file in my local repository aswell.

What is a common workflow for solving this? I cannot pull or push now.

  • 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-27T15:58:16+00:00Added an answer on May 27, 2026 at 3:58 pm

    Now I do understand, you’re saying have changes both on GitHub and Locally. I am going to assume your local changes are committed – if not, you should either commit them or throw them away using git reset --hard HEAD.

    In principle git pull should have pulled the remote changes down and merged them, but that is not working. If git is complaining about merge conflicts then you should resolve them by hand, commit the result and then push it up.

    If something stranger has happened, you can try the same approach. First grab the remote changes in a remote-tracking branch (i.e. not in your working directory), git pull will probably have done this for you (use gitk --all to find out). If not, play around with git-fetch to try and grab more stuff). When you have what you want in a remote tracking branch, you can do a git merge by hand.

    (Sorry if this is not very clear, but since I don’t know your exact errors, I have to guess).

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

Sidebar

Related Questions

We have a repository that was exported from subversion into git. This repository is
I have a list of changed files in git repository. There is one file
We have a file that we need to be tracked in our Git repository.
I have just one cs file in my repository which Git seems to think
I have a git repository that's used only to hold graphics and sound files
I have a git repository (and working directory) that is stored in my Dropbox
I have created a new project and checked the create a local git repository
I have a file ( config.php ), that is already committed to a Git
I have a file, let's say file.txt I have done git mv file.txt to
Assume you have a file which has been committed in your Git repo. You

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.