github-for-windows

git command could not be found and could not find ssh-agent

两盒软妹~` 提交于 2019-11-28 15:27:17
问题 I was on GitHub today and realized I was behind on updates from a repo. I tried to fetch updates, but it failed from the outset. I received two messages when I started up Git Shell (from GitHub for Windows): Warning: git command could not be found. Please create an alias or add it to your PATH. Warning: Could not find ssh-agent. When I attempted to enter "$ git fetch origin", I got the following error message: The term '$' is not recognized as the name of a cmdlet, function, script file, or

Change Git repository directory location.

你。 提交于 2019-11-28 15:16:53
With Git/Github for Windows, if I have a repository with this directory: C:\dir1\dir2 , what do I need to do to move the repo files to C:\dir1 ? I can obviously physically copy and paste the files, but what do I need to do on the Git side? I have this repo on GitHub and I use Git Bash and GitHub for Windows. Simply copy the entire working directory contents (including the hidden .git directory). This will move the entire working directory to the new directory and will not affect the remote repository on GitHub. If you are using GitHub for Windows, you may move the repository using the method

Unable to pull/push in git repository

。_饼干妹妹 提交于 2019-11-28 06:11:22
$ git pull origin master fatal: unable to access 'https://xxxxxxxxxxxxxxx': error setting certificate verify locations: CAfile: C:/Users/abc/AppData/Local/Programs/Git/usr/bin/curl-ca-bundle.crt CApath: none I am getting this error when I pull or push my code. Please guide me to fix this. I was also facing this problem in windows and running git using gitbash. I just reinstalled gitbash, And gitbash automatically managed git certificate and its path needed. CodeWizard When using https you will need to supply password or using a certificate. In your case looks like the certificate is not a

Use GitHub for Windows for both Bitbucket and GitHub

混江龙づ霸主 提交于 2019-11-28 02:53:49
Is it possible to use GitHub for Windows for both Bitbucket and GitHub at once? For example, can I have repo on both sites show up in the program, and when I commit/synch a repo, it push to the respective repo on the respective website? VonC No, if you mean: having a local repo with two remotes (one GitHub and one Bitbucket). You can define only one remote with that client, and it will be either a GitHub one or a Bitbucket one. Yes, if you limit to one remote, you can use GitHub for Windows with any upstream repo. The process of adding an upstream repo is now easier with the (constantly)

git pull fails with “Either the application has not called WSAStartup, or WSAStartup failed”

↘锁芯ラ 提交于 2019-11-28 02:52:42
问题 I have just installed Windows 10, Visual Studio Community 2015, and Git for Windows. I also installed the latest Bitbucket and GitHub extensions. Within Visual Studio I cloned my Bitbucket.com-hosted repository, and performed these operations successfully: $ git --version git version 2.19.2.windows.1 $ git pull Already up to date. But then when I tried to pull from another repository I got this error: $ git pull git://github.com/aegif/CmisSync.git fatal: unable to lookup github.com (port 9418

On Windows git: “error: Sparse checkout leaves no entry on the working directory”

橙三吉。 提交于 2019-11-27 11:36:46
问题 I had the error: “error: Sparse checkout leaves no entry on the working directory” when trying to set up a sparse checkout in git on windows. I've answered my own question after researching the issue and finding the full answer spread out across the web. 回答1: tl;dr From the folder in which you want the source to live, using a git-bash prompt NOT powershell (although see my edit below): git clone –n <repo> <local-directory-name> cd <local-directory-name> git config core.sparsecheckout true

What does GitHub for Windows' “sync” do?

一世执手 提交于 2019-11-27 11:31:14
With GitHub for Windows, you can "publish" a branch, and then "sync" that branch to GitHub. Is the sync basically a git pull and git push ? Or is there more to it? If I wanted to do the exact same steps as "sync" from the command line, what should I do? (It's not Open Source, or I'd just read that.) Sync does git pull --rebase and then if there are local changes, it does git push . From here: http://haacked.com/archive/2012/05/21/introducing-github-for-windows.aspx#87318 Since the above answer was more than two years ago, an updated answer to this question is: due to some bugs with rebase ,

Where does GitHub for Windows keep its SSH key?

≯℡__Kan透↙ 提交于 2019-11-27 10:41:24
问题 GitHub distributes a simplified git client for Windows they call GitHub for Windows; it authenticates via GitHub account, and although it usually uses SSL authentication for local repositories it creates, if you tell it to use an existing local repository that has an SSH remote on GitHub it will use your GitHub credentials to set up an SSH key on the GitHub account for itself. But where does it keep the SSH key in the filesystem? 回答1: %HOMEDRIVE%%HOMEPATH%\.ssh\id_rsa.pub is where the key is

GitHub Windows client behind proxy

…衆ロ難τιáo~ 提交于 2019-11-27 10:12:22
I'm trying to get the GitHub client for Windows working. I am on a corporate Win 7 x64 computer behind a corporate proxy and firewall. Following various other posts and experimenting with multiple combinations of environment variables and config variables I have found the only way to get cloning and push updates to work is by using the HTTPS_PROXY environment variable, including my full corporate domain user ID and password. This is unacceptable from a security standpoint. Is there any other way to get this to work? Additional notes: The following worked: Add an environment variable called

How to update git version from GitHub Desktop on Windows

冷暖自知 提交于 2019-11-27 09:31:51
I want to use the new worktree functionality introduced in git 2.5 . However, I don't know how to update to the most recent version of GitHub Desktop ( not git itself). I install GitHub for desktop and hoped it ships with the most recent version, however git --version returns git version 1.9.5.github.0 . But if I understand correctly, we're already at version 2.6.x! So how can I update to this version on my Windows machine, where the only version of git I installed was with the GH Desktop? VonC Update Nov. 25th, 2015. For what it is worth, GitHub Desktop (finally) uses a more recent git