-
Notifications
You must be signed in to change notification settings - Fork 407
Ability to setup git user.email and user.name on atom. #932
Description
Prerequisites
- Have you tried to reproduce the problem in Safe Mode?
- Have you followed all applicable steps in the debugging guide?
- Have you checked the FAQs on the message board for common solutions?
- Have you checked that your issue isn't already filed?
Description
Setting up atom on a brand new machine but don't have git install locally throws error.
Steps to Reproduce
- Setup a new windows machine.
- Install atom from atom.io
- Open Atom, check out github package and create your first git repo through the UI.
- Make changes, stage the file, and try to commit.
- 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)')
- 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