Where to enter git commands?

I’m pretty sure this will be a basic question for a lot of people, but here goes:

I started going through the book “Pro Git”, and it says to start by setting my username and email using the following lines:

  • fatal: This operation must be run in a work tree
  • 'chcp' is not recognized as an internal or external command, operable program or batch file. on a Windows PC
  • Python not working in the command line of git bash
  • How do I 'svn add' all unversioned files to SVN?
  • How do you commit code as a different user?
  • Does svn have a `revert-all` command?
  • $ git config --global user.name "John Doe"

    $ git config --global user.email johndoe@example.com

    Where do I type these lines? I tried typing them into command prompt and the git GUI, but I’ve had no success. I’m using Windows 7.

  • where should I put .gitignore to affect all projects?
  • Is it safe to interrupt a dcommit call that appears to be hung up?
  • How do I manage an open-source and commercial version of the same project using source control?
  • Track the same files in multiple repositories
  • Installing Latest version of git in ubuntu
  • Git error: previous rebase directory .git/rebase-apply still exists but mbox given
  • 2 Solutions collect form web for “Where to enter git commands?”

    I assuming you’ve probably installed the windows git from http://git-scm.com/download/win

    With the very defaults that won’t put git on your command prompt.

    Use ‘git bash’ either through the start menu or right clicking in the folder.

    Press ‘Start’ button in Windows, type ‘cmd’ in the search field on the bottom of menu. There you have the command line console. Try to type git --version, if show something like ‘git version’, you’re ready to input all the commands here.

    For those command you wrote like$ git xxxxxx, just ignore the $ sign of begin, it’s something like C:\> for unix like OSs.

    Git Baby is a git and github fan, let's start git clone.