git-bash

Executing git-hooks on windows errors out

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-03 01:41:33
问题 So, I have written a simple git-hooks for pre-push which works just fine on Linux or Mac, but doesn't work on Windows. Script: Tries to match the commit message with a regular expression, and should return 0 if matches or else exit. Based on the articles I read, they say that the hook should just work. Command: if [[ "$message" =~ "$regular_expression" ]]; Error: .git/hooks/pre-push: line 6: conditional binary operator expected .git/hooks/pre-push: line 6: syntax error near `=~' .git/hooks

How to Install GNU Parallel on Windows 10 using git-bash

若如初见. 提交于 2020-01-02 13:33:02
问题 Has anyone been able to successfully use GNU Parallel on Windows 10 with git-bash? Is it possible? - If so, how? Background: I'm having trouble installing GNU Parallel and using it, and it got me thinking - maybe git-bash is holding me back? I'm sure if I installed Ubuntu through WSL I wouldn't have any problems running GNU Parallel. But I wanted to know if I could do this in git-bash first. 回答1: I just installed git-bash on a Microsoft Windows 10 machine and had no problems installing GNU

How to Install GNU Parallel on Windows 10 using git-bash

…衆ロ難τιáo~ 提交于 2020-01-02 13:31:14
问题 Has anyone been able to successfully use GNU Parallel on Windows 10 with git-bash? Is it possible? - If so, how? Background: I'm having trouble installing GNU Parallel and using it, and it got me thinking - maybe git-bash is holding me back? I'm sure if I installed Ubuntu through WSL I wouldn't have any problems running GNU Parallel. But I wanted to know if I could do this in git-bash first. 回答1: I just installed git-bash on a Microsoft Windows 10 machine and had no problems installing GNU

Is it possible to show all local branches at the same time in Windows Explorer?

可紊 提交于 2020-01-01 18:37:28
问题 Let's say i have 2 remote branches, Master and Developer, and that my local repository is on the folder D:/Git_Project. On git bash i go to the repository directory and select Master branch, i make a folder and a file inside it, commit changes, push it to remote master branch. Now i switch to the developer branch, and if i now go to D:/Git_Project with windows explorer, i can't see the folders / files from the master branch. Now, i know that git saves those changes under the .git folder, and

Error when trying to extract hyperledger artifacts

随声附和 提交于 2020-01-01 14:39:30
问题 i am using Windows 10 (64-bit) and i seem to have all the prerequisites installed. However, while running the command curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash on Git-Bash, i will get the following error: $ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1205 0 1205 0

Error when trying to extract hyperledger artifacts

怎甘沉沦 提交于 2020-01-01 14:37:37
问题 i am using Windows 10 (64-bit) and i seem to have all the prerequisites installed. However, while running the command curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash on Git-Bash, i will get the following error: $ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1205 0 1205 0

Error when trying to extract hyperledger artifacts

試著忘記壹切 提交于 2020-01-01 14:37:13
问题 i am using Windows 10 (64-bit) and i seem to have all the prerequisites installed. However, while running the command curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash on Git-Bash, i will get the following error: $ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1205 0 1205 0

Bash Script to Push/Pull from Private Git Repository?

三世轮回 提交于 2020-01-01 05:20:14
问题 I'm trying to find a way that I can write a bash script that will auto-pull from our Private Github Repository every midnight and update our development site. Our repo is private for obvious reasons and anything close that I've found always asks for the passphrase. Our server has it's own Github Account that it uses to push and pull from the repository but I just don't know how to do that automatically. Can anyone point me in the right direction? 回答1: In order to automate your push/pull, you

Git Bash bash: open: command not found

坚强是说给别人听的谎言 提交于 2019-12-31 20:36:22
问题 I'm new to Git Bash, just freshly downloaded this for use in my class today, on the first class module it ask me to cd in to different directory and ls the content which works perfectly fine in Git Bash, then it ask me to open a README.md file in a folder with the command: open README.md then this error message show up: bash: open: command not found I know I cd in to the correct folder, and ls does shows the the README.md file, this is a freshly installed and most updated Git Bash, can't

Git Bash bash: open: command not found

限于喜欢 提交于 2019-12-31 20:32:05
问题 I'm new to Git Bash, just freshly downloaded this for use in my class today, on the first class module it ask me to cd in to different directory and ls the content which works perfectly fine in Git Bash, then it ask me to open a README.md file in a folder with the command: open README.md then this error message show up: bash: open: command not found I know I cd in to the correct folder, and ls does shows the the README.md file, this is a freshly installed and most updated Git Bash, can't