Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

$ git config --global user.name "John Doe"

$ git config --global user.email [email protected]

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.

like image 598
Justin Helps Avatar asked Dec 19 '12 02:12

Justin Helps


People also ask

Where do I input Git commands?

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 1.8. 0.2', you're ready to input all the commands here.

How do I open the git command line?

Open the Git command prompt window You can open the command prompt from the Actions menu on the Changes, Commits, and Branches pages. You can also open it from the Connect page: Right-click your local repo, and then click Open Command Prompt. Show me.

How do I enter a command in GitHub?

The default keyboard shortcuts to open the command palette in command mode are Ctrl + Shift + K (Windows and Linux) or Command + Shift + K (Mac). If you already have the command palette open, press > to switch to command mode.

How do I use commands in git bash?

Step 1: Go to Github repository and in code section copy the URL. Step 2: In the Command prompt, add the URL for your repository where your local repository will be pushed. Step 3: Push the changes in your local repository to GitHub. Here the files have been pushed to the master branch of your repository.


1 Answers

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.

like image 70
Beau Trepp Avatar answered Oct 04 '22 14:10

Beau Trepp