Very basic beginner question on Git, from someone with very little command line experience.
- I have Git Bash open.
- I have been following this very useful guide, which I have understood up to a point.
- I want to use
git init
command to start working in a folder.
When opening Git Bash I'm shown my username and computer name (in the form username@computername
) and given a $
prompt. In Windows' cmd.exe I can use commands like dir
to list everything in a folder, and cd
to change to a particular folder, but unless I've missed something these commands aren't available to Git Bash.
QUESTION: The guide says 'if you’re starting to track an existing project in Git, you need to go to the project’s directory and type $ git init
'. How can I list and navigate to folders where I might want to use the git init
command in Git Bash?
...
...
...following the answers below...
RESOURCES FOR OTHERS: Since getting the answers below (which helped clear up my beginner's confusion about the Bash scripting language and Git Bash), I've found the following resources which might be useful to others struggling to get started...
- DOS/Windows to UNIX/BASH command line conversion tables
- A-Z index of BASH commands, not all of which work with Git (e.g.,
dir
!) - git - a simple guide -- very useful but also illustrative of the problem I experienced as a beginner, as witness the comment 'perform a git init? With what, where?'
- [added 20130319] Getting Around in Linux (a useful intro to basic Bash commands)
- [added 20130319] LifeHacker's Command Line Primer