Git-Bash: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Symbolic Links == Requires Elevated Privileges: (or UAC turned off) <ref>https://stackoverflow.com/questions/18641864/git-bash-shell-fails-to-create-symbolic-links</ref> export MSYS=winsymlinks:nativestrict ln -s <target_path> <link_name> Requires Elevated Privileges: cmd /c "mklink /D <link_name> <target_directory>" # For directory symlinks cmd /c "mklink <link_name> <target_file>" # For file symlinks Turn on in Git: git config --global core.symlinks true...") |
No edit summary |
||
| Line 1: | Line 1: | ||
== Windows Terminal Profile == | |||
<pre> | |||
Name: Git Bash | |||
Command Line: "C:\Program Files\Git\bin\bash.exe" --login -i | |||
Starting Directory: %HOMEDRIVE%%HOMEPATH% | |||
Icon (file): C:\Program Files\Git\mingw64\share\git\git-for-windows.ico | |||
Tab Tile: Git Bash | |||
Appearace - Text - Color Scheme - Foreground - Green #13A10E | |||
</pre> | |||
== Bashrc | |||
<pre> | |||
$ cat .bashrc | |||
PS1="\w\[\033[36m\]`__git_ps1`\[\033[0m\]$ " | |||
</pre> | |||
Default PS1 is: | |||
<pre> | |||
\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ | |||
</pre> | |||
== Symbolic Links == | == Symbolic Links == | ||
Revision as of 04:02, 18 November 2025
Windows Terminal Profile
Name: Git Bash Command Line: "C:\Program Files\Git\bin\bash.exe" --login -i Starting Directory: %HOMEDRIVE%%HOMEPATH% Icon (file): C:\Program Files\Git\mingw64\share\git\git-for-windows.ico Tab Tile: Git Bash Appearace - Text - Color Scheme - Foreground - Green #13A10E
== Bashrc
$ cat .bashrc PS1="\w\[\033[36m\]`__git_ps1`\[\033[0m\]$ "
Default PS1 is:
\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$
Symbolic Links
Requires Elevated Privileges: (or UAC turned off) [1]
export MSYS=winsymlinks:nativestrict ln -s <target_path> <link_name>
Requires Elevated Privileges:
cmd /c "mklink /D <link_name> <target_directory>" # For directory symlinks cmd /c "mklink <link_name> <target_file>" # For file symlinks
Turn on in Git:
git config --global core.symlinks true
# local only git config core.symlinks true
---