Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Programa Git

Fui pesquisar mais e encontrei os videos da Rafaella Ballerine sobre Git e Github, resolvi ver como funciona o programa instalei e fui fazendo o que ela estava fazendo, mas logo no começo o Git informou:

email@DESKTOP-M47FNMH MINGW64 ~/OneDrive/Área de Trabalho/ProjetoGit (master)
$ git commit -m "primeiro commit"
Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'email@DESKTOP-M47FNMH.(none)')

Então pensei que deveria informal meu nick name ou email do Github para continuar seguindo o video da Rafa, mas não sei qual comando devo fazer ou se estou entendendo bem como esse programa funciona. Se alguém puder me dar uma luz agradeço.

Garanta sua matrícula hoje e ganhe + 2 meses grátis

Continue sua jornada tech com ainda mais tempo para aprender e evoluir

Quero aproveitar agora
2 respostas
solução!

Olá Arthur, tudo bem?

O Git é uma ferramenta muito útil para controle de versão de projetos, e é ótimo que você esteja aprendendo a utilizá-la. O erro que você encontrou é bem comum e acontece quando o Git não consegue identificar quem está realizando as alterações no repositório.

Para resolver esse problema, você precisa configurar o seu nome de usuário e e-mail no Git. Para isso, basta seguir as instruções que o Git informou no erro:

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

Substitua "you@example.com" pelo seu e-mail e "Your Name" pelo seu nome. Depois disso, você poderá continuar seguindo o vídeo da Rafaella normalmente.

Espero ter ajudado.

Um abraço e bons estudos.

Obrigado, Lorena.

Fiz o que você me disse e isso aconteceu com ao introduzir meu email:

email@DESKTOP-M47FNMH MINGW64 ~
$ git config --glocal user.email "emaildoarthi@gmail.com"
error: unknown option `glocal'
usage: git config [<options>]

Config file location
    --global              use global config file
    --system              use system config file
    --local               use repository config file
    --worktree            use per-worktree config file
    -f, --file <file>     use given config file
    --blob <blob-id>      read config from given blob object

Action
    --get                 get value: name [value-pattern]
    --get-all             get all values: key [value-pattern]
    --get-regexp          get values for regexp: name-regex [value-pattern]
    --get-urlmatch        get value specific for the URL: section[.var] URL
    --replace-all         replace all matching variables: name value [value-pattern]
    --add                 add a new variable: name value
    --unset               remove a variable: name [value-pattern]
    --unset-all           remove all matches: name [value-pattern]
    --rename-section      rename section: old-name new-name
    --remove-section      remove a section: name
    -l, --list            list all
    --fixed-value         use string equality when comparing values to 'value-pattern'
    -e, --edit            open an editor
    --get-color           find the color configured: slot [default]
    --get-colorbool       find the color setting: slot [stdout-is-tty]

Type
    -t, --type <type>     value is given this type
    --bool                value is "true" or "false"
    --int                 value is decimal number
    --bool-or-int         value is --bool or --int
    --bool-or-str         value is --bool or string
    --path                value is a path (file or directory name)
    --expiry-date         value is an expiry date

Other
    -z, --null            terminate values with NUL byte
    --name-only           show variable names only
    --includes            respect include directives on lookup
    --show-origin         show origin of config (file, standard input, blob, command line)
    --show-scope          show scope of config (worktree, local, global, system, command)
    --default <value>     with --get, use default value when missing entry

E isso aconteceu ao colocar meu nome:

email@DESKTOP-M47FNMH MINGW64 ~
$ git config --global user.name "Arthi Elle"

Tudo certo? Era p ter acontecido bem isso?