You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
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.
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.exeIt 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 rungit 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 directoryfatal: failed to run pack-refsDescribe 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.