Questions tagged [git-bash]

Git Bash is a bash shell bundled with Git for Windows that enables the use of Git from the command line.

Git for Windows provides a Bash emulation environment used to run Git and a small set of Unix tools from the command line.

3416 questions
1
vote
1 answer

Launching devenv from git-bash gives build error

I need to launch a build of my solution from gitbash. I am on visual studio 2010 running with the VS2003 toolset. For that I call a .bat file which builds the solution from the devenv.exe switch command. Running the bat file on its own is fine.…
1
vote
3 answers

Add node.exe installation path into environment variables path?

I'm using Gitbash for the first time and after I installed Nodejs, I was asked to "Add your node.exe installation path (example: c:\Program Files\nodejs\10.15.3) into environment variables path Anyone know how to do this (what to put in the command…
jason ap
  • 71
  • 2
  • 9
1
vote
0 answers

After switching from one remote to another, __git_ps1 only shows commit hash

I switched my working copy from one remote repo to another by adding the new remote, pushing to the new remote and then removing the old remote and changing new remote name to origin. The only problem is now git bash shows only commit hash at the…
Osada Lakmal
  • 891
  • 2
  • 8
  • 22
1
vote
2 answers

running a simple ls command with subprocess and git bash

I am trying to call a git bash shell command from inside Windows operating system. Following is my code snippet. Can anyone please tell me, what I am doing wrong? git_bash_path =…
infoclogged
  • 3,641
  • 5
  • 32
  • 53
1
vote
1 answer

Format strings to JSON with jq

Might be easy enough for someone who has experience with jq. I am novice. I am learning jq with bash to create json arrays. I want to generate json array with jq in bash. I have my file named fileForV: V Apple is good for you A Broccoli is…
Woods
  • 81
  • 1
  • 2
  • 8
1
vote
0 answers

git-bash: '.' is not recognized as an internal or external command, operable program or batch file

I have a package.json file where I have start and prestart scripts as follows: "prestart": "./node_modules/react-viro/bin/run_ngrok.sh", "start": "node node_modules/react-native/local-cli/cli.js start" But whenever I enter the command npm start in…
amiyakt
  • 15
  • 6
1
vote
0 answers

What can be done to fix Heroku's H10 error?

I am trying to launch a simple portfolio website using Heroku but everytime I run the app I get the H10 error. What can I do to fix it? I've had various errors throughout the process, which I've managed to fix. But this recent error, H10, I can't…
Doug Cueva
  • 29
  • 1
  • 4
1
vote
0 answers

Change the location of the ~ directory in a Windows install of Git Bash without changing %HOME%

I installed Git on Windows 10 which also installed git-bash. When I started git-bash, I noticed I was not in my home directory which I expected to be /C/Users/chris/ The path was /C/adwHome I found that git-bash home "~" is determined first by the…
cmjansen
  • 11
  • 2
1
vote
1 answer

Git bash Command not found

I am trying to install local gridstudio using git bash in windows 10. When I run ./run.sh, I got the following ./run.sh: line 5: docker: command not found ./run.sh: line 11: docker: command not found Then I went to http://127.0.0.1:8080, the…
Z.Gary
  • 13
  • 1
  • 4
1
vote
1 answer

When program uses Command to open Bash to run a script, Bash closes immediately without running the script

I have a simple, already-working bash script set up to launch specific files with specific programs in the gaming frontend EmulationStation on Windows. But the frontend routes its actions through a Command Prompt. And when Command is used to run the…
1
vote
1 answer

Why did my .gitconfig file change my default user name and email address?

I run Git on Windows via Git Bash. I went to do a commit and it told me that my .gitconfig had changed. I'm wondering why suddenly it is using my local NT account when in the past it was using my gmail and associated github user name. Was my…
raddevus
  • 8,142
  • 7
  • 66
  • 87
1
vote
1 answer

mvn -v works in Git Bash but not in Windows cmd

Trying to do basic Maven configuration on Windows 8. Simply testing with command mvn -v. mvn -v works when using Git Bash, but does not work with Windows cmd. Here are my environment variables: $PATH:…
Isaiah Baker
  • 152
  • 2
  • 8
1
vote
2 answers

My local master does not contain changes from my completed pull request

I have a project in Visual Studio 2019 that I cloned from an empty DevOps project. It is using git. I have created a local branch in Visual Studio from master and added a new solution. I have then committed the changes, synced with the server and…
1
vote
1 answer

How does eval stop the pathspec errors in this script?

I want to automate the many version control steps of Git. I was successful until I used git commit -S -m ${var} in my Bash script. This line gives me (pathspec errors x # of word) - 1... unless I use eval. How does eval make my script work? I…
user11104582
1
vote
3 answers

How to upload sub folders on GitHub

How to upload folders on GitHub after I have created a repository, I need to upload a folder inside my repository? How will I be able to do that using git-bash or from terminal? I have added the folder to git by giving command like $ git add…
Manthan
  • 63
  • 1
  • 2
  • 10
1 2 3
99
100