git stash not working in an IntelliJ PowerShell, why is that?











up vote
1
down vote

favorite












I installed git using scoop and generally it seems to be working fine, but I run into an odd situation. When I try to stash changes in a PowerShell console inside IntelliJ (PyCharm actually), I get this error:



> git stash
fatal: could not exec C:/Users/pupeno/scoop/apps/git/current/mingw64/libexec/git-core/git-legacy-stash: No such file or directory


Indeed that file doesn't exist; but running git stash on a standalone PowerShell works. Any idea why this might be?



The way I configure PowerShell to be my terminal is like this:



enter image description here



and this is what the error looks like:



enter image description here










share|improve this question
























  • When I try to stash changes in a PowerShell console inside IntelliJ how did you open the ps console?
    – Andrey
    Nov 11 at 8:31










  • @Andrey: I set the terminal in IntelliJ to be powershell.exe and then open a Terminal. I'll add this detail to the question.
    – pupeno
    Nov 11 at 12:44










  • I have the same problem. I can run stash commands in standalone cmd but not in PyCharm. Have you already found a solution ?
    – Aram810
    21 hours ago















up vote
1
down vote

favorite












I installed git using scoop and generally it seems to be working fine, but I run into an odd situation. When I try to stash changes in a PowerShell console inside IntelliJ (PyCharm actually), I get this error:



> git stash
fatal: could not exec C:/Users/pupeno/scoop/apps/git/current/mingw64/libexec/git-core/git-legacy-stash: No such file or directory


Indeed that file doesn't exist; but running git stash on a standalone PowerShell works. Any idea why this might be?



The way I configure PowerShell to be my terminal is like this:



enter image description here



and this is what the error looks like:



enter image description here










share|improve this question
























  • When I try to stash changes in a PowerShell console inside IntelliJ how did you open the ps console?
    – Andrey
    Nov 11 at 8:31










  • @Andrey: I set the terminal in IntelliJ to be powershell.exe and then open a Terminal. I'll add this detail to the question.
    – pupeno
    Nov 11 at 12:44










  • I have the same problem. I can run stash commands in standalone cmd but not in PyCharm. Have you already found a solution ?
    – Aram810
    21 hours ago













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I installed git using scoop and generally it seems to be working fine, but I run into an odd situation. When I try to stash changes in a PowerShell console inside IntelliJ (PyCharm actually), I get this error:



> git stash
fatal: could not exec C:/Users/pupeno/scoop/apps/git/current/mingw64/libexec/git-core/git-legacy-stash: No such file or directory


Indeed that file doesn't exist; but running git stash on a standalone PowerShell works. Any idea why this might be?



The way I configure PowerShell to be my terminal is like this:



enter image description here



and this is what the error looks like:



enter image description here










share|improve this question















I installed git using scoop and generally it seems to be working fine, but I run into an odd situation. When I try to stash changes in a PowerShell console inside IntelliJ (PyCharm actually), I get this error:



> git stash
fatal: could not exec C:/Users/pupeno/scoop/apps/git/current/mingw64/libexec/git-core/git-legacy-stash: No such file or directory


Indeed that file doesn't exist; but running git stash on a standalone PowerShell works. Any idea why this might be?



The way I configure PowerShell to be my terminal is like this:



enter image description here



and this is what the error looks like:



enter image description here







git powershell intellij-idea pycharm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 11 at 12:47

























asked Nov 10 at 15:05









pupeno

102k97269425




102k97269425












  • When I try to stash changes in a PowerShell console inside IntelliJ how did you open the ps console?
    – Andrey
    Nov 11 at 8:31










  • @Andrey: I set the terminal in IntelliJ to be powershell.exe and then open a Terminal. I'll add this detail to the question.
    – pupeno
    Nov 11 at 12:44










  • I have the same problem. I can run stash commands in standalone cmd but not in PyCharm. Have you already found a solution ?
    – Aram810
    21 hours ago


















  • When I try to stash changes in a PowerShell console inside IntelliJ how did you open the ps console?
    – Andrey
    Nov 11 at 8:31










  • @Andrey: I set the terminal in IntelliJ to be powershell.exe and then open a Terminal. I'll add this detail to the question.
    – pupeno
    Nov 11 at 12:44










  • I have the same problem. I can run stash commands in standalone cmd but not in PyCharm. Have you already found a solution ?
    – Aram810
    21 hours ago
















When I try to stash changes in a PowerShell console inside IntelliJ how did you open the ps console?
– Andrey
Nov 11 at 8:31




When I try to stash changes in a PowerShell console inside IntelliJ how did you open the ps console?
– Andrey
Nov 11 at 8:31












@Andrey: I set the terminal in IntelliJ to be powershell.exe and then open a Terminal. I'll add this detail to the question.
– pupeno
Nov 11 at 12:44




@Andrey: I set the terminal in IntelliJ to be powershell.exe and then open a Terminal. I'll add this detail to the question.
– pupeno
Nov 11 at 12:44












I have the same problem. I can run stash commands in standalone cmd but not in PyCharm. Have you already found a solution ?
– Aram810
21 hours ago




I have the same problem. I can run stash commands in standalone cmd but not in PyCharm. Have you already found a solution ?
– Aram810
21 hours ago












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Although the error output the above location the file itself should be under the git installation folder:



C:Program FilesGitmingw64libexecgit-core



but running git stash on a standalone PowerShell works. Any idea why this might be?




The problem is likely due to the fact that there are spaces in the folder name.

Windows knows how to handle it well.



To verify that this is indeed the problem install git portable version, update your configuration and check to see if there is an error.



Git Portable: https://github.com/sheabunge/GitPortable/






share|improve this answer





















  • That's not where Git is installed, it's in C:/Users/pupeno/scoop/apps/git/current/. I installed it using scoop. I don't think there are spaces in the path, but maybe I'm missing something.
    – pupeno
    Nov 10 at 15:57











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240237%2fgit-stash-not-working-in-an-intellij-powershell-why-is-that%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Although the error output the above location the file itself should be under the git installation folder:



C:Program FilesGitmingw64libexecgit-core



but running git stash on a standalone PowerShell works. Any idea why this might be?




The problem is likely due to the fact that there are spaces in the folder name.

Windows knows how to handle it well.



To verify that this is indeed the problem install git portable version, update your configuration and check to see if there is an error.



Git Portable: https://github.com/sheabunge/GitPortable/






share|improve this answer





















  • That's not where Git is installed, it's in C:/Users/pupeno/scoop/apps/git/current/. I installed it using scoop. I don't think there are spaces in the path, but maybe I'm missing something.
    – pupeno
    Nov 10 at 15:57















up vote
0
down vote













Although the error output the above location the file itself should be under the git installation folder:



C:Program FilesGitmingw64libexecgit-core



but running git stash on a standalone PowerShell works. Any idea why this might be?




The problem is likely due to the fact that there are spaces in the folder name.

Windows knows how to handle it well.



To verify that this is indeed the problem install git portable version, update your configuration and check to see if there is an error.



Git Portable: https://github.com/sheabunge/GitPortable/






share|improve this answer





















  • That's not where Git is installed, it's in C:/Users/pupeno/scoop/apps/git/current/. I installed it using scoop. I don't think there are spaces in the path, but maybe I'm missing something.
    – pupeno
    Nov 10 at 15:57













up vote
0
down vote










up vote
0
down vote









Although the error output the above location the file itself should be under the git installation folder:



C:Program FilesGitmingw64libexecgit-core



but running git stash on a standalone PowerShell works. Any idea why this might be?




The problem is likely due to the fact that there are spaces in the folder name.

Windows knows how to handle it well.



To verify that this is indeed the problem install git portable version, update your configuration and check to see if there is an error.



Git Portable: https://github.com/sheabunge/GitPortable/






share|improve this answer












Although the error output the above location the file itself should be under the git installation folder:



C:Program FilesGitmingw64libexecgit-core



but running git stash on a standalone PowerShell works. Any idea why this might be?




The problem is likely due to the fact that there are spaces in the folder name.

Windows knows how to handle it well.



To verify that this is indeed the problem install git portable version, update your configuration and check to see if there is an error.



Git Portable: https://github.com/sheabunge/GitPortable/







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 10 at 15:50









CodeWizard

48.3k126588




48.3k126588












  • That's not where Git is installed, it's in C:/Users/pupeno/scoop/apps/git/current/. I installed it using scoop. I don't think there are spaces in the path, but maybe I'm missing something.
    – pupeno
    Nov 10 at 15:57


















  • That's not where Git is installed, it's in C:/Users/pupeno/scoop/apps/git/current/. I installed it using scoop. I don't think there are spaces in the path, but maybe I'm missing something.
    – pupeno
    Nov 10 at 15:57
















That's not where Git is installed, it's in C:/Users/pupeno/scoop/apps/git/current/. I installed it using scoop. I don't think there are spaces in the path, but maybe I'm missing something.
– pupeno
Nov 10 at 15:57




That's not where Git is installed, it's in C:/Users/pupeno/scoop/apps/git/current/. I installed it using scoop. I don't think there are spaces in the path, but maybe I'm missing something.
– pupeno
Nov 10 at 15:57


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240237%2fgit-stash-not-working-in-an-intellij-powershell-why-is-that%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Florida Star v. B. J. F.

Danny Elfman

Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues