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
4 answers

How do I extract a file name into 2 parts, making one into directory and the other one inside of it?

I'm trying to sort all mp3 files by artist and name. At the moment, they're in 1 giant file name. E.g Artist - Song name.mp3 I want to convert this to Artist/Song name.mp3 Here's what I've tried so far. In this case, I was using a test file named…
teleluck
  • 35
  • 4
1
vote
1 answer

Vim create more junk files and cannot be removed by rm -rf on gitbash on windows 10

Just upgrade gitbash to last version. Then tried to create file using vim editor on gitbash. File could be created but it created several files along with, test.txt test_txt.swp .test.txt.swp .test.txt.swx And when I tried to remove using rm -rf…
user9032546
1
vote
0 answers

Git bash not in sync with git in Visual Studio

Just upgraded my git bash client (to 2.23) as well as Visual Studio (to 2019) and for some reason, my git bash is not in sync with VS's git. In git bash, when I checkout a new branch in my current project, it creates it and goes to it. However I…
Los Morales
  • 2,061
  • 7
  • 26
  • 42
1
vote
1 answer

Unable to edit user settings when trying to install BASH into VSCode. "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",

it's 808 back again with another question. I am running into some problems as of late. I am learning TypeScript today and I am stuck in the middle of some disastrous predicament. I am trying to install BASH into VS code but I am receiving the…
808Squad
  • 11
  • 5
1
vote
0 answers

Bash script: 'locale' was unexpected at this time

I'm trying to run the following script, but I am getting an error saying 'locale' was unexpected at this time . I'm on a Windows machine, running this in Git Bash. It's a package.json file. { ... "build-lang": "for locale in en-US ar-EG es-ES; do…
user1142130
  • 1,617
  • 3
  • 20
  • 34
1
vote
0 answers

Git Bash console output breaks down when using Laravel Console choice method

I've a little problem with my console. When I use choice method from Laravel Console, the output totally breaks down. I wanted to google this but I can't find any solution. It's really annoying. Anyone know how to fix this? I'm using Git Bash…
Maciej Król
  • 382
  • 1
  • 8
1
vote
3 answers

Errors running script under Git Bash

I have a simple bash shell script I'm running under Git Bash in Windows 10. If I include the usual first line: #!/bin/bash I get the error: bash: #!/bin/bash: No such file or directory If I omit that line, I get the error: bash: $'\357\273\277':…
1
vote
4 answers

Git commits for each push

Is there a way to retrieve a list of commits for the latest push? For example let's assume i'm doing 10 local commits but a single push, is there a git command showing just these 10 commits?
MadManMoon
  • 85
  • 9
1
vote
1 answer

How to assign Project to GHI or Hub (Github) Issue in CommandLine?

My workflow is such, that I have a Project in Github. In my VS Code, I use Hub to open a new Issue, at the time of opening, I can assign labels, however, there is no support for adding Project at the command line for hub. I want to find a way to…
mysamza
  • 387
  • 1
  • 6
  • 22
1
vote
1 answer

Github authentication auto-failing

As it says, moment I try to connect to a github repo it just straight up fails, doesn't ask for authentication, just dies right away and gives "fatal authentication" error. Is previous authentication saved somewhere?
JCaptain
  • 57
  • 4
1
vote
0 answers

NODE_ENV is not recognized as an internal or external command, operable program or batch file

I am trying to set up a Node Express server with some basic routes and I have some unit tests to run against them. But when I try to run the tests I get the following error. 'NODE_ENV' is not recognized as an internal or external command, operable…
C V
  • 209
  • 1
  • 3
  • 13
1
vote
1 answer

Adding background music that fades out with ffmpeg

I have a piece of video that is 30fps and simply want to add overlay faint background music starting at 10 seconds. Then I want it to fade out during the last 15 seconds. I can't find any good examples of this other than weird hacks. ffmpeg -i…
malbolge
  • 13
  • 2
1
vote
0 answers

Cannot configure python and anaconda for git-bash:

I'm a newbie so excuse my poor use of terms. I'm facing a problem in configuring git bash on windows to run python and anaconda and jupyter notebook as well. I inserted the path I got for anaconda, python, and jupyter notebook from my Anaconda…
Saleh
  • 11
  • 1
1
vote
2 answers

How to create a baseline in Git that only include files from specific commits

Within ClearCase, we had the ability to create a labeled baseline which contained only the binary files modifed by specific change requests managed by ClearQuest. For reference, we are using Jira to do the same thing, with a custom integration. …
gitrdone
  • 21
  • 1
  • 5
1
vote
3 answers

Steps to use .gitignore and .git/info/exclude

I'm having trouble understanding how to use and write to a .gitignore, .git/config file and .git/info/exclude file. I've read through this post and this documentation but its just not clicking for me. my understanding is that: - .gitignore is to…
Matan
  • 117
  • 11
1 2 3
99
100