Skip to content

Push Command Error #23805

Answered by yamiacat
CforED asked this question in New to GitHub
Discussion options

You must be logged in to vote

The first error appear to be caused by trying to run multiple Git operations at the same time. Do you perhaps have several terminal windows open, and you’ve entered commands in both of them?

If you keep having that problem, make sure you close down all terminals except one, and then try deleting the index.lock file in your .git directory.

rm -f .git/index.lock

For the final error, it looks like the repository you’re trying to push to has changes that this version of the repository doesn’t have, so you will need to run git pull to get those changes and commit them, dealing with any merge conflicts, and then you should be able to push again.

Replies: 1 comment

Comment options

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