git_bash_notes
This is an old revision of the document!
Table of Contents
dummy
how to end stdin
Use ctrl+z.
In general, ctrl+z is used to send EOF in Windows and ctrl+d in Linux.
minimum recommended version
- github recommends >= 2.29 for caching github credentials (https://docs.github.com/en/get-started/getting-started-with-git/caching-your-github-credentials-in-git). It is the first version offering OAuth support for GitHub.
links I came across
- Is this same as getting 'git bash' terminal?
find out whether a terminal is cygwin or git bash
uname -s | cut -f 1 -d '-'
terminal | output |
---|---|
git bash | MINGW64_NT |
cygwin | CYGWIN_NT |
Sample shell script snippet:
terminal_type=`uname -s | cut -f 1 -d '-'` if [ "$terminal_type" = "CYGWIN_NT" ]; then echo "Using cygwin terminal" elif [ "$terminal_type" = "MINGW64_NT" ]; then echo "Using git bash terminal" else echo "Using unknown terminal" fi
See also:
- https://github.com/KamarajuKusumanchi/sampleusage/blob/master/bash/compare_strings.sh - shell script snippet to branch off code based on terminal type.
git_bash_notes.1654632093.txt.gz · Last modified: 2022/06/07 20:01 by raju