In the install path of Git for Windows, what's the difference between ./git-bash.exe and bin/bash.exe and...
In the install path of git for windows, I found these 3 exes:
./git-bash.exe,
./bin/bash.exe,
./bin/sh.exe,
Launching any of them would give me a usable terminal.
The 1st is the default shortcut in the start menu created by the installation, the 2nd is used in the VSCode doc for setting up the integrated terminal in VSCode, the 3rd is mentioned in the ConEmu doc.
What's the difference between them and which should I use?
git git-bash
add a comment |
In the install path of git for windows, I found these 3 exes:
./git-bash.exe,
./bin/bash.exe,
./bin/sh.exe,
Launching any of them would give me a usable terminal.
The 1st is the default shortcut in the start menu created by the installation, the 2nd is used in the VSCode doc for setting up the integrated terminal in VSCode, the 3rd is mentioned in the ConEmu doc.
What's the difference between them and which should I use?
git git-bash
The first would be the terminal emulator and bash and sh are shells.
– fredrik
Dec 30 '18 at 20:58
add a comment |
In the install path of git for windows, I found these 3 exes:
./git-bash.exe,
./bin/bash.exe,
./bin/sh.exe,
Launching any of them would give me a usable terminal.
The 1st is the default shortcut in the start menu created by the installation, the 2nd is used in the VSCode doc for setting up the integrated terminal in VSCode, the 3rd is mentioned in the ConEmu doc.
What's the difference between them and which should I use?
git git-bash
In the install path of git for windows, I found these 3 exes:
./git-bash.exe,
./bin/bash.exe,
./bin/sh.exe,
Launching any of them would give me a usable terminal.
The 1st is the default shortcut in the start menu created by the installation, the 2nd is used in the VSCode doc for setting up the integrated terminal in VSCode, the 3rd is mentioned in the ConEmu doc.
What's the difference between them and which should I use?
git git-bash
git git-bash
edited Dec 30 '18 at 20:48
ZYinMD
asked Dec 30 '18 at 19:21
ZYinMDZYinMD
586
586
The first would be the terminal emulator and bash and sh are shells.
– fredrik
Dec 30 '18 at 20:58
add a comment |
The first would be the terminal emulator and bash and sh are shells.
– fredrik
Dec 30 '18 at 20:58
The first would be the terminal emulator and bash and sh are shells.
– fredrik
Dec 30 '18 at 20:58
The first would be the terminal emulator and bash and sh are shells.
– fredrik
Dec 30 '18 at 20:58
add a comment |
2 Answers
2
active
oldest
votes
The Bourne-Again Shell orbash is a super-set of sh i.e. whatever you can do in sh can also be done in bash. Bash has more features making it easier to write scripts.
On the other hand, Git bash is a msys shell included in Git for Windows since Windows natively does not support bash features (unless you add the Windows Sub-sytem for Linux).
add a comment |
git-bashis part of "Git for windows" and provides a command line environment similar to *nix bash.
Windows 10 includes "Windows subsystem" which could provide a Linux environment inside Windows (which includes sh and bash, a short comparison can be found at Difference between sh and bash)
You can use any of them for git. It may be an advantage to use the same as your co-workers (if you would need any help with the shell or a script).
Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.
– ZYinMD
Dec 31 '18 at 2:28
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53980686%2fin-the-install-path-of-git-for-windows-whats-the-difference-between-git-bash%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The Bourne-Again Shell orbash is a super-set of sh i.e. whatever you can do in sh can also be done in bash. Bash has more features making it easier to write scripts.
On the other hand, Git bash is a msys shell included in Git for Windows since Windows natively does not support bash features (unless you add the Windows Sub-sytem for Linux).
add a comment |
The Bourne-Again Shell orbash is a super-set of sh i.e. whatever you can do in sh can also be done in bash. Bash has more features making it easier to write scripts.
On the other hand, Git bash is a msys shell included in Git for Windows since Windows natively does not support bash features (unless you add the Windows Sub-sytem for Linux).
add a comment |
The Bourne-Again Shell orbash is a super-set of sh i.e. whatever you can do in sh can also be done in bash. Bash has more features making it easier to write scripts.
On the other hand, Git bash is a msys shell included in Git for Windows since Windows natively does not support bash features (unless you add the Windows Sub-sytem for Linux).
The Bourne-Again Shell orbash is a super-set of sh i.e. whatever you can do in sh can also be done in bash. Bash has more features making it easier to write scripts.
On the other hand, Git bash is a msys shell included in Git for Windows since Windows natively does not support bash features (unless you add the Windows Sub-sytem for Linux).
answered Dec 31 '18 at 4:41
SaikatSaikat
2,61053759
2,61053759
add a comment |
add a comment |
git-bashis part of "Git for windows" and provides a command line environment similar to *nix bash.
Windows 10 includes "Windows subsystem" which could provide a Linux environment inside Windows (which includes sh and bash, a short comparison can be found at Difference between sh and bash)
You can use any of them for git. It may be an advantage to use the same as your co-workers (if you would need any help with the shell or a script).
Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.
– ZYinMD
Dec 31 '18 at 2:28
add a comment |
git-bashis part of "Git for windows" and provides a command line environment similar to *nix bash.
Windows 10 includes "Windows subsystem" which could provide a Linux environment inside Windows (which includes sh and bash, a short comparison can be found at Difference between sh and bash)
You can use any of them for git. It may be an advantage to use the same as your co-workers (if you would need any help with the shell or a script).
Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.
– ZYinMD
Dec 31 '18 at 2:28
add a comment |
git-bashis part of "Git for windows" and provides a command line environment similar to *nix bash.
Windows 10 includes "Windows subsystem" which could provide a Linux environment inside Windows (which includes sh and bash, a short comparison can be found at Difference between sh and bash)
You can use any of them for git. It may be an advantage to use the same as your co-workers (if you would need any help with the shell or a script).
git-bashis part of "Git for windows" and provides a command line environment similar to *nix bash.
Windows 10 includes "Windows subsystem" which could provide a Linux environment inside Windows (which includes sh and bash, a short comparison can be found at Difference between sh and bash)
You can use any of them for git. It may be an advantage to use the same as your co-workers (if you would need any help with the shell or a script).
edited Dec 31 '18 at 9:00
answered Dec 30 '18 at 22:21
joranjoran
1,833915
1,833915
Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.
– ZYinMD
Dec 31 '18 at 2:28
add a comment |
Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.
– ZYinMD
Dec 31 '18 at 2:28
Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.
– ZYinMD
Dec 31 '18 at 2:28
Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.
– ZYinMD
Dec 31 '18 at 2:28
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53980686%2fin-the-install-path-of-git-for-windows-whats-the-difference-between-git-bash%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The first would be the terminal emulator and bash and sh are shells.
– fredrik
Dec 30 '18 at 20:58