Push Command Error

How do I remove the following Push Commend, Error Messages:

AzureAD+AdminUser@Surface MINGW64 /g/google/panel (master)
$ git commit -m “doc commit batch” .
fatal: Unable to create ‘G:/google/panel/.git/index.lock’: File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by ‘git commit’. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.

AzureAD+AdminUser@Surface MINGW64 /g/google/panel (master)
$ git remote add origin git@github.com:CforED/sway.git
fatal: remote origin already exists.

AzureAD+AdminUser@Surface MINGW64 /g/google/panel (master)
$ git push -u origin master
Enter passphrase for key ‘/c/Users/AdminUser/.ssh/id_rsa’:
To github.com:CforED/sway.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to ‘git@github.com:CforED/sway.git’
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., ‘git pull …’) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push --help’ for details.

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.