Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unexpected system error after push was received

Tags:

github

There was some github.com down time today that I wasn't aware of until I went to push about one dozen local commits.

  • https://status.github.com/messages
  • https://twitter.com/githubstatus

Here's the message I received when trying to push to github.com:

remote: Unexpected system error after push was received. remote: These changes may not be reflected on github.com! remote: Your unique error code: abcdefghijklmnopqrstuvwxuz 

Now that github.com is back up, when I view the project commit history online, I can see these dozen commits have not been pushed up to the repo.

I figured I could just push these changes again with git push origin master, but I am told Everything up-to-date. Similarily a git pull origin master also shows Everything up-to-date.

How can I get these local changes pushed up to my repo on github.com?

like image 772
tyler.frankenstein Avatar asked Jan 28 '16 03:01

tyler.frankenstein


People also ask

How do I fix git push origin master?

If git push origin master not working , all you need to do is edit that file with your favourite editor and change the URL = setting to your new location. Assuming the new repository is correctly set up and you have your URL right, you'll easily be able to push and pull to and from your new remote location.

What is the push command in git?

The git push command is used to upload local repository content to a remote repository. Pushing is how you transfer commits from your local repository to a remote repo. It's the counterpart to git fetch , but whereas fetching imports commits to local branches, pushing exports commits to remote branches.

How do I push a branch to GitHub?

The steps to follow in order to push new Git branches to remote repos such as GitHub, GitLab or Bitbucket are as follows: Clone the remote Git repo locally. Create a new branch with the branch, switch or checkout commands. Perform a git push with the –set-upstream option to set the remote repo for the new branch.


1 Answers

I hate to answer my own question so quickly, but with a little tinkering, here's a quick work around I discovered:

echo "bar" >> foo.txt git add foo.txt git commit -m "Add foo.txt" git push origin master git rm foo.txt git commit -m "Remove foo.txt" git push origin master 

This properly refreshed the commit history for my github.com repo. This should be safe to do, but definitely take a backup of your local code before trying it.

like image 178
tyler.frankenstein Avatar answered Sep 23 '22 13:09

tyler.frankenstein