Skip to content

Same user 2 computers, changes lost instead of merged #22917

Discussion options

You must be logged in to vote

To test this I:

  1. Created this commit creating janthonyl.txt as a blank file using the GitHub web UI
  2. Issued git pull on my local machine with the master branch checked out to put both the GitHub repository and my local repository in the same state
  3. Created this commit adding five lines to the janthonyl.txt file using the GitHub web UI
  4. Added two lines to the local copy of janthonyl.txt using my favorite editor
  5. Issued the command git commit -a -m "Today's changes" locally to commit the local changes
  6. Issued the command git fetch origin master locally to get the changes from the GitHub repository
  7. Issued the command git merge origin/master locally

This resulted in the following error message:

A…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants