how to go back one directory in git bash

JavaScript
To navigate to your home directory, use "cd" or "cd ~"
To navigate up one directory level, use "cd .."
To navigate to the previous directory (or back), use "cd -"
To navigate into the root directory, use "cd /"cd -

Source

Also in JavaScript: