Linux is typically packaged as a Linux distribution, which includes the kernel and supporting system software and libraries, many of which are provided by the GNU Project. Linux ( / ˈ l iː n ʊ k s/ ( listen) LEE-nuuks or / ˈ l ɪ n ʊ k s/ LIN-uuks) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Most distributions include a desktop environment ( GUI).This should make your git work so much easier. Then, you can also tell git you want your commits signed all the time by default: $ git config -global commit.gpgsign true Just know that if you added a passphrase for your GPG key, you may need to set the GPG_TTY environment variable as such: $ export GPG_TTY=$(tty) GitHub’s official guide at htt ps:///en/articles/adding-a-new-gpg-key-to-your-github-account is excellent. Subsequently, you won’t have to keep authenticating to GitHub anymore. It will even cleverly handle 2FA logins automatically, obtaining a Personal Access Token on your behalf. The next time you try to git pull (or whatever) from GitHub, you’ll be properly prompted in a GUI dialog box for your credentials. Then, in your WSL shell, configure git like so: git config -global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe " The defaults to all the install questions are just fine. It’s on GitHub, look further down for the installer executable. I’ve included bit extras about GPG signing of commits.įirst, go get Microsoft’s Git Credential Manager for Windows. There are other tutorials about using git in cmd.exe, or in a Git Bash, or the like. This is for using git in Windows Subsystem for Linux, in a distribution like Ubuntu. So here’s a short how-to, for my own reference if I ever need to setup this up again, and anyone else trying to do the same thing. The solution isn’t complicated, but it just isn’t well documented. One of the things I struggled with was about supplying my GitHub credentials to git when used in Windows Subsystem for Linux. I’ve been using Windows for much of my work now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |