D
D
Denis Titusov2015-03-16 17:39:07
git
Denis Titusov, 2015-03-16 17:39:07

How to get around git error: fatal: file is outside repository in Pycharm?

There is a git repository, it has a lot of branches. There are several remote repositories.
There is Pycharm version 4.0.5 and Windows 8.1.
At some point, I decided to download one of the branches for myself. Actually, through PyCharm I pulled the buddy / master -> buddy_master branches.
Everything would be fine, but in the remote repository there was a file called "t: Connection refused". For obvious reasons, it could not be created in Windows.
Since I did not need these changes, I deleted the local buddy_master branch and switched to my branch, in which I made changes before titusov_master.
Bottom line, if I use git bash or git gui everything works fine. git status shows:

On branch titusov_master
Your branch is up-to-date with 'titusov/titusov_master'.

nothing to commit, working directory clean

The Git GUI also shows that there are no changes.
However, if you try to make a commit from PyCharm or check the status, an error occurs
Error updating changes: fatal: 't: Connection refused' is outside repository during executing git -c core.quotepath=false status --porcelain -z --untracked-files=no --. "t: Connection refused"

Tried doing reset, revert, pull from remote repository, but nothing helped. Works from console, but doesn't work from PyCharm.
Please tell me what am I doing wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Titusov, 2015-03-16
@denis-titusov

Understood.
Deleted lines from workspace.xml

<list default="true" id="182cfec7-5e6a-417f-b35f-5babd231f6d1" name="Default" comment="">
      <change type="DELETED" beforePath="t: Connection refused" afterPath="" />
    </list>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question