Unable to Connect to GitHub.com For Cloning
You are probably behind a firewall. Try cloning via https – that has a higher chance of not being blocked: git clone https://github.com/angular/angular-phonecat.git
You are probably behind a firewall. Try cloning via https – that has a higher chance of not being blocked: git clone https://github.com/angular/angular-phonecat.git
2013: In a git bash session, you can add a script to ~/.profile or ~/.bashrc (with ~ being usually set to %USERPROFILE%), in order for said session to launch automatically the ssh-agent. If the file doesn’t exist, just create it. This is what GitHub describes in “Working with SSH key passphrases“. The “Auto-launching ssh-agent on … Read more
As far as I can tell, this was caused by a conflict with the version of Python 3.7 that was recently added into the Windows Store. It looks like this added two “stubs” called python.exe and python3.exe into the %USERPROFILE%\AppData\Local\Microsoft\WindowsApps folder, and in my case, this was inserted before my existing Python executable’s entry in … Read more
git bash is a shell where: the running process is sh.exe (packaged with msysgit, as share/WinGit/Git Bash.vbs) git is a known command $HOME is defined See “Fix msysGit Portable $HOME location“: On a Windows 64: C:\Windows\SysWOW64\cmd.exe /c “”C:\Prog\Git\1.7.1\bin\sh.exe” –login -i” This differs from git-cmd.bat, which provides git commands in a plain DOS command prompt. A … Read more
Follow the steps to setup SSH keys here: https://help.github.com/articles/generating-ssh-keys OR git remote add origin https://{username}:{password}@github.com/{username}/project.git Update: If you get “fatal: remote origin already exists.” then you have to use set-url: git remote set-url origin https://{username}:{password}@github.com/{username}/project.git
Got it. As a Windows user, I’m used to type executable names without extensions. In my case, I wanted to execute a file called cup.bat. In a Windows shell, typing cup would be enough. Bash doesn’t work this way, it wants the full name. Typing cup.bat solved the problem. (I wasn’t able to run the … Read more
Doing Scripts/activate runs the script in a new instance of the shell, which is destroyed after the script execution. To run the script in your current shell, use either . Scripts/activate or source Scripts/activate. Scripts/activate.bat does not work here because it is written in Batch, Windows cmd.exe language, and not Bash.
Yes, you can do git push https://username:[email protected]/file.git –all in this case https://username:[email protected]/file.git replace the origin in git push origin –all To see more options for git push, try git help push
winpty is A Windows software package providing an interface similar to a Unix pty-master for communicating with Windows console programs. That is why you need it as described here: The software works by starting the winpty-agent.exe process with a new, hidden console window, which bridges between the console API and terminal input/output escape codes. It … Read more
Writing this for those just getting started with Git and BitBucket on Windows & who are not as familiar with Bash (since this is both a common issue and a high ranking Google result when searching for the error message within the question). For those who don’t mind HTTPS and who are looking for a … Read more