git_bash_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
git_bash_notes [2021/08/16 15:40] – raju | git_bash_notes [2022/08/09 21:04] – [ask for git credentials again] raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== recommended version ==== | + | ===== Install additional software in git bash ===== |
- | * github recommends >= 2.29 for caching github credentials (https:// | + | ==== Install rsync 3.1.3-1 into a non standard directory ==== |
+ | This installs rsync 3.1.3-1 into / | ||
+ | |||
+ | Download the software | ||
+ | < | ||
+ | mkdir -p ~/ | ||
+ | cd ~/ | ||
+ | curl https:// | ||
+ | </ | ||
+ | |||
+ | Install the software | ||
+ | < | ||
+ | mkdir -p / | ||
+ | tar xJvf rsync-3.1.3-1-x86_64.pkg.tar.xz -C / | ||
+ | </ | ||
+ | |||
+ | Update the PATH | ||
+ | |||
+ | Add the following lines to ~/.bashrc | ||
+ | < | ||
+ | # For rsync | ||
+ | export PATH=/ | ||
+ | </ | ||
+ | |||
+ | Ref:- | ||
+ | * http:// | ||
+ | ===== dummy ===== | ||
+ | ==== how to end stdin ==== | ||
+ | Use ctrl+z. | ||
+ | |||
+ | In general, ctrl+z is used to send EOF in Windows and ctrl+d in Linux. | ||
+ | |||
+ | Ref:- https:// | ||
+ | |||
+ | ==== minimum | ||
+ | * github recommends >= 2.29 for caching github credentials (https:// | ||
==== links I came across ==== | ==== links I came across ==== | ||
Line 14: | Line 49: | ||
| git bash | MINGW64_NT | | | git bash | MINGW64_NT | | ||
| cygwin | CYGWIN_NT | | | cygwin | CYGWIN_NT | | ||
+ | |||
+ | Sample shell script snippet: | ||
+ | < | ||
+ | terminal_type=`uname -s | cut -f 1 -d ' | ||
+ | |||
+ | if [ " | ||
+ | echo "Using cygwin terminal" | ||
+ | elif [ " | ||
+ | echo "Using git bash terminal" | ||
+ | else | ||
+ | echo "Using unknown terminal" | ||
+ | fi | ||
+ | </ | ||
See also: | See also: | ||
Line 19: | Line 67: | ||
* https:// | * https:// | ||
+ | ==== ask for git credentials again ==== | ||
+ | < | ||
+ | git push -v | ||
+ | </ | ||
+ | |||
+ | Ref:- https:// | ||
+ | |||
+ | tags | update github token, git config personal token |
git_bash_notes.txt · Last modified: 2024/06/10 14:27 by raju