Looks like you have an open git commit
or git merge
going on, and an editor is still open editing the commit message.
Two choices:
- Find the session and finish it (preferable).
- Delete the
.swp
file (if you’re sure the other git session has gone away).
Clarification from comments:
- The session is the editing session.
- You can see what
.swp
is being used by entering the command:sw
within the editing session, but generally it’s a hidden file in the same directory as the file you are using, with a.swp
file suffix (i.e.~/myfile.txt
would be~/.myfile.txt.swp
).
Related Posts:
- What is the best (and safest) way to merge a Git branch into master?
- Undo a Git merge that hasn’t been pushed yet
- How can I switch to another branch in git?
- Git merge hotfix branch into feature branch
- Abort a Git Merge
- GitHub: Permission denied (publickey). fatal: Could not read from remote repository
- git – remote add origin vs remote set-url origin
- GitHub Error Message – Permission denied (publickey)
- Updating a local repository with changes from a GitHub repository
- Git push results in “Authentication Failed”
- github changes not staged for commit
- Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
- Git push results in “Authentication Failed”
- Download single files from GitHub
- How do I pull my project from github?
- How to resolve merge conflicts in a Git repository
- Difference between Git and GitHub
- How to solve SSL certificate: self signed certificate when cloning repo from github?
- How can I merge multiple commits onto another branch as a single squashed commit?
- How can I merge multiple commits onto another branch as a single squashed commit?
- How to find my GitHub username so that I can be found via the URL?
- Pushing to Git returning Error Code 403 fatal: HTTP request failed
- github website publish cannot publish unborn HEAD
- The following untracked working tree files would be overwritten by merge, but I don’t care
- The following untracked working tree files would be overwritten by merge, but I don’t care
- fatal: The current branch master has no upstream branch
- Create a tag in a GitHub repository
- Git: Could not resolve host github.com error while cloning remote repository in git
- How to pull a specific branch from Github
- GitHub: invalid username or password
- Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied
- How do I update or sync a forked repository on GitHub?
- Git error on commit after merge – fatal: cannot do a partial commit during a merge
- Can I share my private GitHub repository by link?
- There is no tracking information for the current branch
- Is there a “theirs” version of “git merge -s ours”?
- Git push results in “Authentication Failed”
- Meaning of the GitHub message: push declined due to email privacy restrictions
- How to rename a directory/folder on GitHub website?
- “*** Please tell me who you are.” when using SSH key
- .gitignore and “The following untracked working tree files would be overwritten by checkout”
- Download a single folder or directory from a GitHub repo
- Pull request vs Merge request
- Clone A Private Repository (Github)
- How do I rename a repository on GitHub?
- The following untracked working tree files would be overwritten by merge, but I don’t care
- error: cannot lock ref.. ‘refs/tags’ exists; cannot create ‘refs/tags/
- .gitignore and “The following untracked working tree files would be overwritten by checkout”
- Is there a “theirs” version of “git merge -s ours”?
- Git: Installing Git in PATH with GitHub client for Windows
- ! [rejected] master -> master (fetch first)
- How to git add a whole folder
- My new Github page isn’t showing up
- How can I remove a commit on GitHub?
- Unity Collaborate vs GitHub
- “fatal: HttpRequestException encountered.” Error with GitHub/Bitbucket Repositories due to dropping TLS-1.0 support
- SourceTree keeps asking for Github password
- How do I set up Eclipse/EGit with GitHub?
- Repository size limits for GitHub.com
- How to change the license for a project at Github?
- Why I always Got Error “Push to origin/master was rejected”?
- Is it possible to pull just one file in Git?
- How to resolve git status “Unmerged paths:”?
- Git lfs – “this exceeds GitHub’s file size limit of 100.00 MB”
- Github Windows ‘Failed to sync this branch’
- fatal: could not read Username for ‘https://github.com’: No such file or directory
- Github Authentication Failed – … GitHub does not provide shell access
- How to update a branch with master on GitHub
- How do I pull files from remote without overwriting local files?
- Git keeps prompting me for a password
- git push origin master does not work
- How to keep a branch synchronized/updated with master?
- Resolve Git merge conflicts in favor of their changes during a pull
- Can I arrange repositories into folders on Github?
- Delete forked repo from GitHub
- How to discard local changes and pull latest from GitHub repository
- Could not create work tree dir ‘example.com’.: Permission denied
- Is there a git-merge –dry-run option?
- Git pull – Please move or remove them before you can merge
- Differences between Commit, Commit and Push, Commit and Sync
- How can I delete all Git branches which have been merged?
- key_load_public: invalid format
- How do I show the changes which have been staged?
- Git push hangs when pushing to Github?
- Git: Where exactly is the “working directory”?
- Create empty branch on GitHub
- Import existing source code to GitHub
- Git push requires username and password
- GIT and Development URL’s point to production
- Pull latest stable release via git [closed]
- Is it possible to checkout a beta version of WordPress via github?
- how can I create a WP offline environment before releasing the websites? [closed]
- How to use Git Revert
- How do I resolve git saying “Commit your changes or stash them before you can merge”?
- How can I determine the URL that a local Git repository was originally cloned from?
- How to create a .gitignore file
- Why does Git say my master branch is “already up to date” even though it is not?
- Your repository has no remotes configured to push to
- Specify an SSH key for git push for a given domain
- How to use Git and Dropbox together?