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.

Very simple suggestion, on windows, add git to the PATH during installation #1917

@G-T-P

Description

@G-T-P

Summary

Atom comes with git out of the box thanks to its github integration. On a windows environment, the git.exe is located there:
%USERNAME%\AppData\Local\atom\app-1.34.0\resources\app.asar.unpacked\node_modules\dugite\git\mingw64\bin\git.exe
It would be very simple during the installation procedure to add an extra step where git is added to the PATH environment variable. This would enable the use of git within a windows terminal.

Motivation

Some of the features that git offers are not integrated within the GUI of atom-github. To use those, on a windows environment, it is necessary to install git for windows. In reality it is already installed with the newer versions of atoms it is simply not added to the PATH.

When it is added to the path, it is possible to simply run C:\any\path> git --version. And when it is not added the absolute path to the git executable needs to be specified (and other software relying on git cannot leverage it). For instance, without adding git to the path, it is impossible to run git gc (even with the absolute path being specified) because this call requires to spawn a git process, which will cause the following error:
error: cannot spawn git: No such file or directory
fatal: failed to run pack-refs

Describe alternatives you've considered

Adding it myself. This is very easy:
You have to put your .exe file's path into enviroment variable path.
Go to "My computer -> properties -> advanced -> environment variables -> Path" and edit path by adding .exe's directory into path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions