Does anyone know where I can find a quick reference for all commands in gitbash for windows? The help command covers the most important, but I can't find info on basic navigation such as getting the current directory, changing directory etc.
This question is related to
git-bash
from within the git bash shell type:
>cd /bin
>ls -l
You will then see a long listing of all the unix-like commands available. There are lots of goodies in there.
Git command Quick Reference
git [command] -help
Git command Manual Pages
git help [command]
git [command] --help
Autocomplete
git <tab>
Cheat Sheets
It will help you a lot Basic Git Commands
You should accept Mike Gossland's answer, but it can be improved a little. Try this in Git Bash:
ls -1F /bin | grep '\*$' | grep -v '\.dll\*$' | sed 's/\*$\|\.exe//g'
Explanation:
List on 1 line, decorated with trailing *
for executables, all files in bin
. Keep only those with the trailing *
s, but NOT ending with .dll*
, then replace all ending asterisks or ".exe" with nothing.
This gives you a clean list of all the GitBash commands.
git-bash uses standard unix commands.
ls for directory listing cd for change directory
more here -> http://ss64.com/bash/ Not all of these will work, but the file based ones mostly do.
Source: Stackoverflow.com