Installation

-- Configuring the line ending conversions
(x) Checkout Windows-style, commint Unix-style line ending
	Git convert LF to CRLF when checkin out text files. When commitin
	texte files, CRLF will be converted to LF. For cross-plateform project,
	this the recommended setting on Windows ("core.autocrlf" is set to "true").
( ) Checkout as-is, commit Unix-style endings
	Git will not perform any conversoin when checking out text files. When
	committing text files, CRLF will be converted to LF. For cross-plateform projects,
	this is the recommended sestting on Unix ("core.autocrlf" is set to "input").
( ) Checkout as-is, commit as-is
	Git will not perform any conversions when checking out or commiting
	text file? Chossin this option is not recommended for cross-plateform
	projects ("core.autocrlf" is set to "false").

-- Configuring the terminal emulator to use with Git Bash
(x) Une MinTTY (the default terminal of MSYS2)
	Git Bash will use MinTTY as terminal emulator, which spoerts a resizable windows,
	non-rectangular selection an a Unicode font, Windows console programs (such 
	as interactive Python) must be launched via `winpty` to work in MinTTY.
( ) Use Windows'default console window
	Git will use the default console window of Windows ("cmd.exe"), ... limite defaut scroll-back ...

Usage

"C:\Program Files\Git\git-bash.exe"

ryzen@RYZEN MINGW64 ~
$ bash -version
GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)

$ pwd
/c/Users/ryzen

Autre

Git BASH options

Par défaut "Git Bash", se lance avec :

"C:\Program Files\Git\git-bash.exe" --cd-to-home

Et se démarre dans :

%HOMEDRIVE%%HOMEPATH%

Quelles sont les options de git bash ?

git-for-windows / build-extra --cd-to-home, git-bash and git-cmd will use that as the working directory when launched,

kujiy/git-bash.exe-args How to open a specific folder with git-bash.exe from a command line(shell) "C:\Program Files\Git\git-bash.exe" "--cd="C:\YOUR\FOLDER\"

Git - Using Bash Shell for Windows For windows system, Git provides a BASH emulation to run Git from the command line. What is Git Bash emulation? MINGW64 also includes MSYS2 which provides a bash shell. Above shells actually runs in a Mintty terminal window. In window right click > Options > About...

How can I find out the command line options for git-bash.exe? Where can I find a complete list of options for git-bash.exe (the therminal emulator)? I found them for mintty – Cygwin terminal emulator, but they don't seem to be the correct ones for git-bash.exe...

sh - Linux man page - bash - GNU Bourne-Again SHell

How do I launch a Git Bash window with particular working directory using a script? Git Bash uses cmd.exe for its terminal plus extentions from MSYS/MinGW which are provided by sh.exe, a sort of cmd.exe wrapper. In Windows you launch a new terminal using the start command.

cd C:/path/to/dir1 && start sh --login

# An equivalent Windows batch script is:

C:
cd \path\to\dir1
start "" "%SYSTEMDRIVE%\Program Files (x86)\Git\bin\sh.exe" --login 

Pour la base de registre:

Ordinateur\HKEY_CLASSES_ROOT\Directory\Background\shell\git_shell

Python ne fonctionne pas dans la ligne de commande git bash

Python not working in the command line of git bash

You can change target for Git Bash shortcut from:

"C:\Program Files\Git\git-bash.exe" --cd-to-home
/// 

to

"C:\Program Files\Git\git-cmd.exe" no-cd command=usr/bin/bash.exe -l -i


!!!! Lancer git bash depuis un bat

[How To Launch Git Bash from DOS Command Line?|https://stackoverflow.com/questions/17302977/how-to-launch-git-bash-from-dos-command-line]

start "" "%PROGRAMFILES%\Git\bin\sh.exe" --login


nice prompt if I do

"C:\Program Files\Git\bin\sh.exe" --login


In PowerShell

& 'C:\Program Files\Git\bin\sh.exe' --login


C:\>dir "%PROGRAMFILES%\Git\bin\" bash.exe git.exe sh.exe ///