github-for-windows

git push - Permission to denied - The requested URL returned error: 403

百般思念 提交于 2021-02-08 06:49:57
问题 As many other, when I use git push I get the next error: remote: Permission to mmistakes/minimal-mistakes.git denied to MyName. fatal: unable to access 'https://github.com/mmistakes/minimal-mistakes.git/': The requested URL returned error: 403 I´m working in Windows, I have git 2.22. I tried: Running the following two commands in the terminal, replacing the obvious things: git config --global user.name "Your Name Here" git config --global user.email "Your Email Address Here" This one "How can

Git - SSH remotes with GitHub Desktop

核能气质少年 提交于 2020-08-01 17:30:29
问题 I am using GitHub Desktop on Windows 10. I initially cloned a repo using its HTTPS URL, but now our organisation have advised that we must use the SSH URL instead. So I have changed this over. I have also copied the contents of my public SSH key ( id_rsa.pub ) in to my GitHub account. My SSH key is protected by a passphrase. Now when I try to do to a sync in GitHub Desktop I get the following error: In Git Bash it works fine (it asks me for my passphrase before each pull/push though). Any

How to keep a GitHub fork up to date without a merge commit or using CLI?

半世苍凉 提交于 2020-07-17 06:19:32
问题 The normal GitHub flow to contribute to a repo is to create a fork of the upstream, clone a local copy where you make changes, then push back up to your fork and then create a PR to have your changes merged into upstream. But if upstream changes after that, how do you update your fork without creating a merge commit (and also without using the git CLI)? I already know how to do this in a way that will create a merge commit or which depend on the git command line interface. This question is

How to keep a GitHub fork up to date without a merge commit or using CLI?

喜欢而已 提交于 2020-07-17 06:18:06
问题 The normal GitHub flow to contribute to a repo is to create a fork of the upstream, clone a local copy where you make changes, then push back up to your fork and then create a PR to have your changes merged into upstream. But if upstream changes after that, how do you update your fork without creating a merge commit (and also without using the git CLI)? I already know how to do this in a way that will create a merge commit or which depend on the git command line interface. This question is

Setting colors for ls in git bash on windows

最后都变了- 提交于 2020-06-24 00:50:19
问题 I have installed GitHub for Windows recently and am using the git bash prompt - the one thing that is bugging me right now is when I type LS all directories are listed in blue. How do I change my git bash shell so that when I type LS the directories are listed in a different color to blue? 回答1: This is not specifically a git issue but more the shell that you are using. On MINGW32 using Git 2.9+: C:\Program Files\Git\etc\ bash.bashrc # Uncomment to use the terminal colours set in DIR_COLORS

Clone from a branch other than master

大憨熊 提交于 2020-06-09 07:33:45
问题 I am trying to pull from a repository in Github. But I don't want to clone the master branch. I want to clone some other branch. When I try git clone <url> , I get the files from master branch. What should I do? Also, suppose the code is updated in the repository and I want to get the latest code, should I again use git clone ? Because the size of the project is huge. Also if I make changes to the project locally, and then I again use git clone, will the changes I made still be there? What if

Github Windows 'Failed to sync this branch'

巧了我就是萌 提交于 2020-01-28 13:16:08
问题 I am using Github Windows 1.0.38.1 and when I click the 'Sync' button after committing, I get the error How do I debug this problem? If in the shell, what should I do? The sync works fine if i do a git push or git pull , but the next time I want to sync using Github windows, I get the same error. 回答1: When it says that, just open the shell and do git status . That will give you a decent idea of what could be wrong and the state of your repo. I can't give you a specific error for this as it

Does GitHub for Windows work with GitLab?

柔情痞子 提交于 2020-01-27 08:56:27
问题 While working on a project using GitHub I've fallen in love with GitHub for Windows as a client. Now a new project beckons where I'll be using GitLab instead of GitHub. Will I still be able to use GitHub for Windows as a client for GitLab? After all, they're both based on git, right? If not, what clients are available for GitLab? 回答1: Yes, you can use the Windows GitHub client and the GitHub Desktop client with GitLab, BitBucket or any other hosted Git solution. We only use it with HTTPS and

Does GitHub for Windows work with GitLab?

懵懂的女人 提交于 2020-01-27 08:55:26
问题 While working on a project using GitHub I've fallen in love with GitHub for Windows as a client. Now a new project beckons where I'll be using GitLab instead of GitHub. Will I still be able to use GitHub for Windows as a client for GitLab? After all, they're both based on git, right? If not, what clients are available for GitLab? 回答1: Yes, you can use the Windows GitHub client and the GitHub Desktop client with GitLab, BitBucket or any other hosted Git solution. We only use it with HTTPS and

What does GitHub for Windows/Mac “publish” do?

时间秒杀一切 提交于 2020-01-23 13:19:06
问题 Like in What does GitHub for Windows' "sync" do? What does GitHub for Windows/Mac “publish” do? Does it push the branch to my origin? 回答1: Does it push the branch to my origin? Yes, but if you don't have an origin yet, it will ask you for the kind of remote repo you want to create. (create... on GitHub of course) See "Push your code to GitHub.com" Click the “ Publish ” button in the upper-right corner and GitHub Desktop will ask you what kind of repository to create: Public repository —