Git setup, return terminal: command not found

I am trying to configure Git on my computer, and now I have to write terminal: in this command $ git config --global user.name "Your Name Here", but it answers: - bash: $: command not found. I'm not getting any of this, can someone help me?

+4
source share
4 answers

Take out $at the beginning; $is a common designation that people write to indicate that it is a terminal command.

The real team:

git config --global user.name "Firstname Lastname"

Since it gitdoesn’t work, and you use Github for Mac, you can install the command line tools through the Github settings on the Advanced tab.

+7
source

, Git; GitHub Mac.

Git Homebrew, Git, .

, git .

0

Git Bash

git

Windows, , , /Mingw 64//git

, , cd/mingw64/bin

. git config --global user.name "yournamehere"

.

0

You are receiving this message because you did not set the Path environment variable to git.exe. as soon as you type git in cmd / git bash, you will also get an error message.

depends on how you installed the program, but usually the .exe file can be found in the folder C: \ Program Files \ Git \ bin

0
source

Source: https://habr.com/ru/post/1538222/


All Articles