git_bash_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
git_bash_notes [2021/08/16 15:42] – [recommended version] raju | git_bash_notes [2022/08/11 20:06] (current) – [ask for git credentials again] raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Install additional software in git bash ===== | ||
+ | ==== 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 recommended version ==== | ==== minimum recommended version ==== | ||
* github recommends >= 2.29 for caching github credentials (https:// | * github recommends >= 2.29 for caching github credentials (https:// | ||
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: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | |||
+ | ==== ask for git credentials again ==== | ||
+ | < | ||
+ | git push -v | ||
+ | </ | ||
+ | |||
+ | Ref:- https:// | ||
+ | |||
+ | tags | update github token in git bash, git config personal token | ||
git_bash_notes.1629128531.txt.gz · Last modified: 2021/08/16 15:42 by raju