Category "git-bash"

Git alias to open the git installation folder

I want to create a git alias git dir, which when used should open the git installation folder via Windows Explorer, how to implement such an alias?

Git bash will not resolve "sam" command

I am using Win10 latest. After installing AWS-SAM-CLI and testing the installation with: sam --version I get the message bash: sam: command not found however

Git bash on Windows different result than terminal on CentOS for regex [duplicate]

See the following cleanCustomer.sh file #!/bin/bash customer=Reportçós cleanedCustomer=${customer//[^a-zA-Z0-9 \-_.]/} echo $cle

Using Git Bash unable to compile C code: "gcc:command not found"

I am trying to compile a winsock code using git bash as a terminal I installed MINGW and git bash lstest version but when I use gcc main.c -o main.exe it gives

How to Shorten Git Bash Prompt (Windows)

How do I shorten my git bash prompt from something like this Malik@LAPTOP-7R9912OI MINGW64 ~/Desktop/test $ to something like this Malik@test$ I am using

Vue version not in any npm list

I have sometime to code with vue and node. I returned to my windows 10 system and using git bash I have node in my windows system : $ node -v v12.14.1 Then I d

Git Bash, go back in folders

Im doing a course of "ECMASCRIPT 6" and in the video the teacher is using the Git Bash console. i have to go back in the folders so i can go to the folder i wan

Convert Unix-Style Path to Windows

I have the same Bash script that I am running on Linux, Mac, and Windows (with Git Bash). How can I make sure that the path is converted to a Windows-style path

Git Bash on Windows with Ruby: Waiting for gets() input before printing prompt?

I'm new to programming/Ruby and can't figure out this quirky issue... Running this Ruby code through Git Bash on Windows: $ ruby test.rb puts "Give me input:

How to create a .bat file which execute python file

I'm new to bat file and started to implementing it. I have a list of linux application commands which starts my application. I have a windows system to deploy,

How to add the man command to git bash on windows and include the manuals

The popular man package on Linux seemingly comes as two components, a binary and a database. The binary is the code that executes man commands and the database

How can I solve "fatal: ambiguous argument 'HEAD~1': unknown revision or path not in the working tree"?

I have only one commit on master and haven't merged it into the remote. I want to remove my commit, keep my changed files, change my branch, and commit them. No

How to run devenv.exe command line switches (for Visual Studio 2019) from git bash

My primary use case is I'd like to use devenv.exe /edit command to open files in an already running instance of Visual Studio 2019, using git bash. The issue I

Locate a file and then opening the file using the command line in GitBash

I am new to GitBash. I am using GitBash in Windows 10. I started at the home directory and following are the commands/steps I have followed: ls. cd Documents.

-bash: __git_ps1: command not found

I tried to install Ruby 2.0. My command line urped and now looks like the following: -bash: __git_ps1: command not found [11:58:28][whatever@whatever ~]$ I

Python print Unicode string via 'Git Bash' gets 'UnicodeEncodeError'

in test.py i have print('Привет мир') with cmd worked as normal > python test.py ?????? ??? with

Heroku Login timing out on Win64

I have installed the Heroku CLI for Win 64 platform and am using Git Bash. When entering the command heroku login or heroku login -i the program asks for any ke

How to change folder with git bash?

My default git folder is C:\Users\username\.git. What command should I use to go into C:/project?

Where does Git Bash get all its host mappings from?

I'm using Git Bash in Windows 8. I can see it has copied C:\Windows\system32\drivers\etc\hosts over to /etc/hosts. Note that /etc/hosts is not a link to C:\Wind