Questions tagged [git-bash]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Passing BibteX options in Vim-Latex

My current Latex workflow involves using Mendeley to automatically create .bib files. These bibfiles are stored in a Mendeley directory in my home folder. Because I don't want to have all my projects ...
0
votes
2answers
52 views

What is the difference between git-bash.exe and sh.exe in Windows?

I wanted to integrate git bash into IntelliJ, so I've changed the default terminal path to C:\Program Files\Git\bin\sh.exe. After some time I noticed that some commands are not working, for example: ...
0
votes
0answers
48 views

the input device is not a TTY in git-bash

I'm trying to create this alias in my .bashrc file: alias devopsjoin='docker ps -q -f ancestor=<image name> | { read container; docker exec -it $container zsh; };' I am on Windows and running ...
0
votes
1answer
28 views

I need help changing where GitBash looks for the SSH keys on my Windows 10 machine

I am on a Windows 10 VDI provided by a client. I have set up git and when I try to use GitBash I get an error when it is attempting to find the ssh keys. The client has their VDIs set up to place the ...
0
votes
0answers
15 views

Where does Gitbash save the PATH when I export?

I tried making a link to the /c/ProgramFiles/Git/ Directory and it just didn't work, so I kept exporting more and more bous paths. I've looked in /c/ProgramFiles/Git/etc and userprofile/documents and ...
2
votes
2answers
64 views

How to get the dir name where I ran the command

I have a folder like this C:\repos\3333-new-feature. And from that location, in a git bash terminal, I run a bat file: /c/repo/3333-new-feature $ myBat.bat One of the instructions in the bat should ...
0
votes
1answer
103 views

Git-Bash stop script from running on startup

I used this script to set my Git Bash to start in the same folder no matter where I start it. However, I would like to not run this script on startup; i.e. revert to what happened on startup before I ...
-1
votes
1answer
32 views

How come I'm having trouble cp this file to another directory?

cp fanpage.html path/Desktop I am using this command to cp the fanpage.html file from my prework-about-me directory to my Desktop directory. When I run the exact command I posted here how come it ...
1
vote
1answer
53 views

What does /* next to file names mean in a code editor?

I noticed some files have /* next to them in my code editor (composer.json and style.css. It looks like comment code... What does it mean? EDIT - I am not talking about css comments. Please refer to ...
0
votes
0answers
18 views

Git bash in Windows 7: Can't delete a file I created

I created a file by piping by gradlew command to a file in a git bash. Now, I can't delete it either within git bash or Windows 7 File Explorer. Git bash just says "permission denied", and Windows ...
0
votes
1answer
20 views

How to display local repository content?

I am new to github stuff. Currently using git bash as a CLI to communicate to remote repository I am working on. For now I do comprehend differences in between working directory and local repository ...
0
votes
0answers
28 views

Using VS Code and Git Bash on Windows 10 with OpenSSH Agent

I've recently set up the Open SSH agent on my Windows machine, and created the keys using: ssh-keygen -t ecdsa -b 521 ssh-add I managed to set up my WSL to use this agent when SSHing from it (using ...
2
votes
1answer
4k views

How to fix “Permission Denied” in Git Bash in Windows 10?

Whenever I tried to run this command: python get-pip.py, git bash gave me this response: bash: /c/Users/Sergio Ley/AppData/Local/Microsoft/WindowsApps/python: Permission denied. I don't know how to ...
0
votes
0answers
18 views

Git push on git bash leads to annoying 28 OpenSSH popups

Im using Windows 10 and im using Git Bash to work with several get repositories. All of the git repositories are hosted on the same GitLab server. All but one repositories is working fine. The one ...
0
votes
1answer
195 views

Is shebang necessary in git bash scripts on windows

Shebang is the first line of a bash script telling where the bash script is executed. In Windows git bash scripts, is it necessary? If not, why?
0
votes
0answers
51 views

Launch git bash from file explorer address bar

I used to launch Command Prompt from the address bar of file explorer where I just need to type 'cmd' on the address bar. Currently, I am looking for a way to treat git bash the same way. I have ...
1
vote
1answer
30 views

cURL zip file is not a valid archive

I wrote a script to download a zip file based on some user inputs. The file downloads but cannot be opened by a zip file extractor. Git Bash on Win 10. curl -u user:pwd -k -# -C - "$REQUEST_URL" -o "$...
1
vote
0answers
93 views

SSH suddenly stopped working in git-bash on Windows 10

I have been using git-bash in Windows 10 (Version 10.0.17134.1069) for a year now. Since last week my SSH commands just hangs. It looks like this: The process eats up 12% percent of the CPU and ...
0
votes
0answers
52 views

How to delete empty files with Hexadecimal names on Windows

I have a very vital folder that is being "infested" with unknown files. The 500,000+ files have HEXadecimal Names and most of them are 0 bytes each. This is how the files names look like. : 08/28/...
0
votes
0answers
86 views

Ignore delete failed files when using “git clean”

When I use git clean -dfx while the solution is opened in Visual Studio, I got Unlink of file '.vs/MyService/v15/Server/sqlite3/db.lock' failed. Should I try again? (y/n) How do I ignore that in the ...
0
votes
0answers
284 views

`conda init` doesn't work in bash on Windows

I install Git-Bash and conda on my Windows, which provides two program: C:\Program Files\Git\git-bash.exe and C:\\Program Files\\Git\\bin\\bash.exe. The latter, C:\\Program Files\\Git\\bin\\bash.exe, ...
1
vote
1answer
26 views

Is it possible to cd to an ancestor within a directory tree without knowing how far up I need to go?

I'm writing a script to automate adding, committing, and pushing changes to my submodule and repo. Some submodules are nested further than others and I need to cd back up to the root of the repo. I'm ...
0
votes
1answer
84 views

i just want creat a react app from my vscode with gitbash terminal. but my npm start is showing error

$ npm start npm ERR! path C:\Users\erdai\OneDrive\Desktop\react crash todo\package.json npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or ...
0
votes
1answer
210 views

Issues while trying to run python through Anaconda3 from Git Bash

Please can someone help me understand (and resolve) whats going on. I think my problem relates to some kind of path issue or permission issue, But I need help or direction/coaching to resolve this. I ...
0
votes
0answers
90 views

Need help troubleshooting less and less-watch-compiler

Today I was setting up less and less-watch-compiler and ran into a few problems. So after downloading node, I then downloaded yarn. From GitBash, I wanted to download less and less-watch-compiler, so ...
0
votes
0answers
22 views

Git cannot open Notepad++

I have configured notepad++ through git bash and it used to work really well. But now since two days it says that notepad.exe not found. What should I do?
0
votes
1answer
1k views

On Git Bash, I get an error `cat: /dev/fd/63: No such file or directory` whenever I run the cd command

I've been trying to find out by this problem is happening, I'm using Windows 10 and this error occurs on Git Bash. Whenever I run the cd command to change the directory, I get the following error: ...
3
votes
2answers
2k views

Installing Anaconda on Git Bash and trying conda activate results in repeated CommandNotFoundErrors

I've recently refreshed my Git Bash and Anaconda installation, and I am trying to run Git Bash from within VSCode with Anaconda. The issue is that whenever I open the integrated terminal from within ...
0
votes
2answers
4k views

gcc: fatal error: no input files

I wrote this simple line of code and saved it in a file called 'ex.c'. The code is the following (first line is purposely written wrong as it showed up different in the post): "#include < stdio.h &...
0
votes
0answers
124 views

git-bash wrap/unwrap text

I'm using the git-bash built-in in the SourceTree software as a default terimnal. Running in Windows10. Until some days ago the default behaviour regarding the text in the window was: When the text ...
1
vote
1answer
315 views

In Windows Command Prompt or Git Bash, how do you open a document or program that has more than one word in the title?

Whenever I try to open a document or program with more than one word in the title with the correct syntax (using the "start" command and putting the document or program name in quotations), it opens ...
1
vote
1answer
116 views

my virtual environment cannot be found

I'm on a PC windows 10 and always open git bash, then source activate my-env and open a jupyter notebook; somehow my-env broke and I get this error: "C:\bld\conda_1565126647711_h_env/etc/profile.d/...
0
votes
2answers
1k views

Git-Bash and WSL have a different directory structure

So I'm currently in the process of configuring and setting up my WSL on my Windows 10 workstation so I can use some very useful command line tools on Windows. Now in both WSL and Git-Bash you have ...
1
vote
0answers
355 views

Pacman is not found in msys2

I just installed Git for Windows 2.22.0 which should include pacman, but I get an bash: pacman: command not found and I don't see the pacman executable in /usr/bin.
1
vote
2answers
53 views

`vim | less` breaks things

This is the best place I found for my question. Running vim | less from inside gitbash will cause it to do something that I can only describe as "breaking." Usually I can get the less prompt back, ...
0
votes
1answer
295 views

Git Error: bash: command substitution: line 1: syntax error near unexpected token `)'

When I open my GitBash (on Windows 10) I am getting the below error: bash: command substitution: line 1: syntax error near unexpected token `)' bash: command substitution: line 1: `date "+%D %X")' ...
0
votes
1answer
412 views

Windows Terminal Adding git-bash always opens in new terminal window

I was able to figure out how to integrate Git-Bash in windows terminal, but when I select it, it always opens in a new window out side windows terminal. Profile bellow with names removed. { "...
0
votes
1answer
57 views

SCP file copy gets frozen in mid transfer

For some reason I am experiencing an issue with scp/network that file download gets stuck in mid transfer. Usually at the end of the completion, like 90%, 97% or 99%. Files are around 200mb to 1,5gb. ...
2
votes
2answers
2k views

Is it possible to SSH tunnel on Windows 10 with Git Bash?

I'm trying to forward port 5000 from my local machine to a remote server's port 5000 I'm using the command ssh -L 5000:localhost:5000 root@remote However, when I try to make the following curl ...
0
votes
2answers
914 views

Reinstalling Git on Windows

Git bash stopped working for me not sure if i messed up some system variables or something but when i uninstall and try to reinstall i get a series of unable to set system config errors Error 1 ...
1
vote
1answer
50 views

How can I use :perldo in vim on Windows?

I installed Git Bash and vim was pre-installed. I personally would rather use PCREs instead of vim's regular expressions, so I tried doing :perldo /s/foo/bar. The error was that it could not find msys-...
1
vote
1answer
75 views

How to untracked files I have accidentally gotten Git to track

So I messed up big time when trying to add a R Project to Git. I typed the exact location of my R Project (in my Documents folder on my computer), and typed git init. However, when I typed git add . ...
1
vote
1answer
1k views

Node/Npm are verified installed, but npm install throws node not found error in gitbash

I have verified both node and npm are installed: console image They are also working in other shells, including VSCode using Powershell. However when running npm install in GitBash, I'm getting this ...
0
votes
0answers
117 views

Cmake not in path

I downloaded cmake and added it to my path. However, when I use it to try to build an open source game engine project I get the error "CMake not found in path, required for building, exiting...". I am ...
1
vote
0answers
25 views

git branch command not working, but other command do

I have a strange behavior with my installation of Git. The usual Git commands work normally: init, add, commit, push, pull, but when I type any command related to branch, it reported: C:\Program ...
0
votes
1answer
324 views

python path in git bash

I am trying to download and build NS3 with git and using bake. The problem is that I get this error: $ ./bake.py configure -e ns-3.29 /usr/bin/env: ‘python3’: No such file or directory
1
vote
0answers
171 views

Branch disappeared from local repo after commit

I was on a local feature branch and did 'git add .' and then 'git commit -m [my message describing the commit]' then I tried to 'git push origin [branch_name]' which, even though there is no remote ...
1
vote
0answers
139 views

SSH asking for user password instead of ssh key passphrase?

When I attempt to ssh into my remote server, sometimes my terminal asks me for the username password, and sometimes it asks me for the ssh key passphrase. Is this normal? How can I have it always just ...
0
votes
0answers
187 views

VSCode bash terminal prints 'CommandNotFoundError: No command 'conda conda' when opened

I'm not exactly sure why this happens, but I've downloaded VS code through Anaconda and I've downloaded git bash and set it as my default terminal in VS code. When for I run a python file in terminal, ...
1
vote
0answers
301 views

Unable to git with plink

I need to configure git with putty on a windows-7 machine behind a corporate proxy. I had no problem to configure putty/pageant with a specific session for gitlab.com. I have problems trying to ...