git-bash

Setting up repo on GitHub - Error on push -u origin master

孤街浪徒 提交于 2019-12-03 22:52:36
问题 I'm trying to set up my first Git Repository on GitHub. I've been following the documentation on GitHub's website here. I get everything right up until the very last command: git push -u origin master . It gives me the following error: FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey) fatal: The remote end hung up unexpectedly I have no idea what this means. This is the only output I get that differs from what the documentation indicates. I can

Activating pyvenv from gitbash for windows

你说的曾经没有我的故事 提交于 2019-12-03 17:36:33
问题 I use gitbash on windows (7, 64bit). I tried to create a venv using python 3.4's built-in venv module by calling python -m venv venv , and it created successfully, but the resultant venv does not contain a bash activate script, only a .bat and .ps1 . The virtualenv library for python 2.6.6 (version 13.0.1) created the following four files in the venv/Scripts/ folder: activate , activate.bat , activate.ps1 , and activate_this.py . As the gitbash console cannot use the bat or powershell scripts

Git Bash (MinGW 64) v2.12.2 - how do I change the font size?

寵の児 提交于 2019-12-03 16:16:53
问题 How can I change the font size for Git Bash? This is the web site where I downloaded related application, click here. 回答1: Right click in the upper left corner of the Git Bash window and chose "Options.." : Click "Text" and "Select". Select an appropriate font size: Press OK and Save to keep the new settings. 回答2: It's little different from a program like Microsoft Word, but the process is really simple** Step 1: Open your Git Bash terminal and click your cursor on the logo present in the top

Kdiff3 won't open with mergetool command

不打扰是莪最后的温柔 提交于 2019-12-03 14:51:07
问题 I have conflicts, so I type: git mergetool I then get a message saying: Hit return to start merge resolution tool Normally when I do this, it open kdiff3 so I can merge the differences. now when I do it, it just continues to the next file, and kdiff3 doesn't open at all. I triple cheched my git config and my system path and all seems perfect. Config file is as follows: [merge] tool = kdiff3 [mergetool "kdiff3"] path = c:/Program Files (x86)/KDiff3/kdiff3.exe [diff] guitool = kdiff3 [difftool

Git pre-commit hook to find text in files

谁都会走 提交于 2019-12-03 14:22:12
I'm writing a git pre-commit hook to check if any of the staged files are containing disallowed text and abort if that's the case. Not an expert at this. So far I've got this git diff --cached --name-status | while read x file; do if [ "$x" == 'D' ]; then continue; fi if [[ egrep "DISALLOWED_TEXT" ${file}]]; then echo "ERROR: Disallowed text in file: ${file}" exit 1 fi done Doesn't seem to work. I'm getting these errors while commiting: .git/hooks/pre-commit: line 16: conditional binary operator expected .git/hooks/pre-commit: line 16: syntax error near `"DISALLOWED_TEXT"' .git/hooks/pre

Capistrano deployment from Windows using forward_agent option: “Error reading response length from authentication socket.”

徘徊边缘 提交于 2019-12-03 11:20:49
I'm trying to deploy a project using Capistrano. My development machine is running Windows 7; the server I'm deploying onto is Linux. In the deploy.rb script, the following is set: ssh_options[:forward_agent] = true The Capistrano script starts off by running a git command locally, at which point I'm prompted for the passphrase for my SSH key: * executing `deploy:update_code' executing locally: "git ls-remote git@github.com:pathto/gitproject.git develop" Enter passphrase for key '/c/Users/Sam/.ssh/id_rsa': command finished in 6999ms (I've removed the real git path from the above as you can

Permission denied (publickey) errors on Windows when using Moovweb

一曲冷凌霜 提交于 2019-12-03 11:17:30
I'm able to authenticate, generate, push etc just fine with my SSH keys and Moovweb credentials on my Mac and Linux machines. However, on my Windows machine, using Git Bash, I get an SSH Permission denied (publickey) error. The error message is below: $> moov generate 123dsfsdsf nytimes.com Running environment checks. Verifying that git is installed...OK Checking that current 123dsfsdsf directory doesn't exist...OK Registering project with MoovCloud. Authenticating with MoovCloud. Checking for git access...Enter passphrase for key '/Users/firstname.lastname/.ssh/id_rsa': Enter passphrase for

GitHub “Failed connect to github” No Error

会有一股神秘感。 提交于 2019-12-03 10:34:52
问题 I'm pretty new to Git, but I've been using GitBash for commits, pushing and pulling for a week or two now. All was working fine, but a day or two ago when I started getting an error everytime I tried to interact with the remote repositories. fatal: unable to access '....': Failed connect to github.com:443; No error I've done some Googling and come across similar StackOverflow posts and articles. From that, I've tried a number of things, including testing the SSH connection across different

Execute commands from .bat file on Git Bash Terminal

那年仲夏 提交于 2019-12-03 10:34:00
I am newbie to Git bash. Just out of curiosity trying to make a .bat file which contains commands(Dont know if Git Bash supports .bat file) What I want to achieve is simply drag and drop this .bat file to Git Bash terminal and commands in the file get executed(Is it possible?). My commands in .bat file cd "C:\Users\USER\abc\xyz" cd "C:\Users\USER\abc\xyz\pqr" export HOME="C:\Users\USER\some_directory" export HOME2="C:\Program Files\directoy" What I want to achieve is simply drag and drop this .bat file to Git Bash terminal and commands in the file get executed (Is it possible?). This is not

Can't type password in Git Bash

本小妞迷上赌 提交于 2019-12-03 08:52:11
问题 I have a strange problem I couldn't find anything about on the web. I'm learning to use BitBucket and I'm following their walkthrough. I'm using Git Bash as the command prompt as they say here. Whenever I need to enter a password, e.g when cloning a repo, it simply refuses to get any input! I type on the keyboard, but nothing is shown on the screen. The only key it does accept is Enter, and then it says authorization fails because there's no password. I can't type it. The strange thing is