Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Ability to setup git user.email and user.name on atom. #932

@ungb

Description

@ungb

Prerequisites

Description

Setting up atom on a brand new machine but don't have git install locally throws error.

Steps to Reproduce

  1. Setup a new windows machine.
  2. Install atom from atom.io
  3. Open Atom, check out github package and create your first git repo through the UI.
  4. Make changes, stage the file, and try to commit.
  5. Throws the following error:
*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  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 'atomuser@WIN-VU79AHTD4PV.(none)')
  1. Run the follow commands from the error will generate the following error:
'git' is not recognized as an internal or external command,
operable program or batch file.

Expected behavior:
[What did you expect to happen?]

We should probably allow the user to enter their global email and user name from atom /cc @simurai as I'm not sure how this should look like but I know for github for vs, it does this.

If we ask the user to run commands on cmd/terminal, we should provide a link on how to get git especially on windows since it isn't installed by default.

Actual behavior:
[What actually happened instead?]
Get an Error on atom and a error on console o a completely clean machine.

Reproduces how often:
[What percentage of the time does this happen?]
100%

Versions

You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.
Windows 7 x64 bit Ultimate

Atom : 1.18.0
Electron: 1.3.15
Chrome : 52.0.2743.82
Node : 6.5.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions