{"id":2611,"date":"2015-04-03T12:07:12","date_gmt":"2015-04-03T12:07:12","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=2611"},"modified":"2026-01-01T11:27:16","modified_gmt":"2026-01-01T11:27:16","slug":"git-github","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/git-github\/","title":{"rendered":"using github"},"content":{"rendered":"\n<p>I finally got a git account, <a href=\"https:\/\/github.com\/dfl1955\">my site is here<\/a>. This page is about how to, but does not have any command runes. They are held <a href=\"https:\/\/davelevy.info\/wiki\/using-git\/\">elsewhere<\/a>. This page was started in 2011 and I have returned to using git at several times over the years. I tidied up the page in Feb 2019 and Nov 2022, transferring some out of date text to comments. I moved the comments about GCM to <a href=\"https:\/\/davelevy.info\/wiki\/the-git-credential-manager\/\">another page<\/a>. This page is mostly about github.<br><\/p>\n\n\n\n<!--more-->\n\n\n\n<p>My page <a href=\"https:\/\/davelevy.info\/wiki\/using-git\/\">https:\/\/davelevy.info\/wiki\/using-git\/<\/a> documents the old CLI, pre 2FA and will be amended to document using branches in git, and thus github.<\/p>\n\n\n\n<p>This page is being updated to document how to use 2FA, well sort of. I was trying to get this to work, mainly on raspbian at the time and gave up since drag and drop still worked.. I returned in March 2024. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">gh auth<\/h3>\n\n\n\n<p>When the first deprecated CLI logins, they produced a lot of very complicated documentation and solutions. It came to pass that simpletons like me were given a command line login interface<\/p>\n\n\n\n<p><code><a href=\"https:\/\/cli.github.com\/manual\/gh_auth_login\">gh auth login<\/a><\/code><\/p>\n\n\n\n<p>This issues a token which you enter into a logged in web session. It requires the installation of the <code>gh<\/code> package. I have a script in the ..\/installers folder, fetch-gh. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Some Links<\/h3>\n\n\n\n<p>I found these links<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This would seem to be<a href=\"https:\/\/git-scm.com\"> the Git home page<\/a>, and has a windows version download feature.<\/li>\n\n\n\n<li><a title=\"How to use git at kernel.org\" href=\"https:\/\/www.kernel.org\/pub\/software\/scm\/git\/docs\/giteveryday.html\">Everyday GIT With 20 Commands Or So<\/a> from http:\/\/kernel.org because its one of Linus&#8217; systems.<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/GitCredentialManager\/git-credential-manager\/blob\/main\/README.md\">https:\/\/github.com\/GitCredentialManager\/git-credential-manager\/blob\/main\/README.md<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/13479763\/how-to-push-a-single-file-in-a-subdirectory-to-github-not-master\">Pushing <\/a>or <a href=\"https:\/\/stackoverflow.com\/questions\/16230838\/is-it-possible-to-pull-just-one-file-in-git\">pulling <\/a>a single file.<\/li>\n<\/ul>\n\n\n\n<p>To find these I did, a google <a href=\"http:\/\/www.google.co.uk\/search?q=how+to+use+git\">&#8220;how to use git&#8221;, I also<\/a> read the man page,&nbsp; I should check this out,&nbsp;&nbsp;<a href=\"http:\/\/rogerdudler.github.io\/git-guide\/\">http:\/\/rogerdudler.github.io\/git-guide\/<\/a> , it looks very good but does not contain a how to use 2FA.&nbsp; I originally created a commands page and posted them to <a href=\"https:\/\/davelevy.info\/wiki\/using-git\/\">my Using GIT page<\/a> ; it is now out of date, since github introduced 2FA.<\/p>\n\n\n\n<p>This page d<a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Internals-Environment-Variables\">ocuments the environment variables<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">On Branches &amp; Versions<\/h3>\n\n\n\n<p>Also posted on <a href=\"https:\/\/davelevy.info\/wiki\/using-git\/\">Using GIT<\/a><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/itnext.io\/the-github-development-workflow-fb48d9bb63f9\">https:\/\/itnext.io\/the-github-development-workflow-fb48d9bb63f9<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/gist.github.com\/nzakas\/7633640\">https:\/\/gist.github.com\/nzakas\/7633640<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/nvie.com\/posts\/a-successful-git-branching-model\/\">https:\/\/nvie.com\/posts\/a-successful-git-branching-model\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Branching-Branches-in-a-Nutshell\">https:\/\/git-scm.com\/book\/en\/v2\/Git-Branching-Branches-in-a-Nutshell<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I finally got a git account, my site is here. This page is about how to, but does not have any command runes. They are held elsewhere. This page was started in 2011 and I have returned to using git at several times over the years. I tidied up the page in Feb 2019 and&#8230;<\/p>\n","protected":false},"author":1,"featured_media":13680,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[111,3],"tags":[1876,2182,864,1877,865,920,911],"class_list":["post-2611","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-technology","tag-gcm","tag-gh-auth","tag-git","tag-git-credential-manager","tag-github","tag-software","tag-technology"],"share_on_mastodon":{"url":"https:\/\/mastodon.social\/@davelevy_eu\/112014801075252858","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2025\/12\/git-rubaitulazad-unsplash-w1080.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/2611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=2611"}],"version-history":[{"count":15,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/2611\/revisions"}],"predecessor-version":[{"id":13716,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/2611\/revisions\/13716"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/13680"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=2611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=2611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=2611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}