René's URL Explorer Experiment


Title: HEAD does not resolve when trying to checkout a branch (Python 3.11 on WSL2 - Ubuntu 20.04) · gitpython-developers/GitPython · Discussion #1928 · GitHub

Open Graph Title: HEAD does not resolve when trying to checkout a branch (Python 3.11 on WSL2 - Ubuntu 20.04) · gitpython-developers/GitPython · Discussion #1928

X Title: HEAD does not resolve when trying to checkout a branch (Python 3.11 on WSL2 - Ubuntu 20.04) · gitpython-developers/GitPython · Discussion #1928

Description: HEAD does not resolve when trying to checkout a branch (Python 3.11 on WSL2 - Ubuntu 20.04)

Open Graph Description: I've created a new git repository by calling git init external to GitPython, then I tried to run create_head(...) only to encounter the error gitdb.exc.BadName: Ref 'HEAD' did not resolve to an obj...

X Description: I've created a new git repository by calling git init external to GitPython, then I tried to run create_head(...) only to encounter the error gitdb.exc.BadName: Ref 'HEAD' did not resol...

Opengraph URL: https://github.com/gitpython-developers/GitPython/discussions/1928

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"HEAD does not resolve when trying to checkout a branch (Python 3.11 on WSL2 - Ubuntu 20.04)","text":"\u003cp dir=\"auto\"\u003eI've created a new git repository by calling \u003ccode class=\"notranslate\"\u003egit init\u003c/code\u003e external to GitPython, then I tried to run \u003ccode class=\"notranslate\"\u003ecreate_head(...)\u003c/code\u003e only to encounter the error \u003ccode class=\"notranslate\"\u003egitdb.exc.BadName: Ref 'HEAD' did not resolve to an object\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe intention was to follow the flow laid out in \u003ca href=\"https://gitpython.readthedocs.io/en/stable/tutorial.html#handling-remotes\" rel=\"nofollow\"\u003eone of the tutorials\u003c/a\u003e, creating a remote repository on GitHub, then adding local files and pushing them to it.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI read on various issues and discussions here that GitPython can run into this error when the repository is empty, to bypass that I tried running \u003ccode class=\"notranslate\"\u003erepo.index.add([\".\"])\u003c/code\u003e then tried creating the HEAD again, still no luck.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eMy code is as follows:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"def create_repo(\n    working_branch: str,\n    repo_name: str,\n    repo_url: str,\n)\n  # repo_name = myorganisation/my-repo\n  # repo_url turns repo_name into a GitHub SSH URL\n  # working_branch is what it sounds like. Note that the default branch for my organisation is named \u0026quot;main\u0026quot;\n  \n  subprocess.run(args=[\u0026quot;gh\u0026quot;, \u0026quot;repo\u0026quot;, \u0026quot;create\u0026quot;, repo_name, \u0026quot;--private\u0026quot;]) # ensure the remote exists by creating it in GitHub, therefore I expect the \u0026quot;main\u0026quot; branch to exist in the refs\n  subprocess.run(args=[\u0026quot;git\u0026quot;, \u0026quot;init\u0026quot;])\n  repo = git.Repo(str(repo_path))\n\n  remote_name = \u0026quot;origin\u0026quot;\n  remote = repo.create_remote(remote_name, repo_url)\n  # maybe the remote doesn't exist?\n\n  remote.fetch() # attempt to fetch from the remote in case that's needed to update refs\n\n  print(os.listdir()) # indeed, there are files present besides the .git folder\n  repo.head.reference = repo.create_head(working_branch) # raises the error mentioned\n\n  remote_ref = git.RemoteReference(\n      repo=repo,\n      path=f\u0026quot;refs/remotes/{remote_name}/{working_branch}\u0026quot;,\n  )\n  repo.head.reference.set_tracking_branch(remote_ref)\n  branch_obj: git.Head = [h for h in repo.heads if h.name == working_branch][0] # this is old code to try and fetch refs, but none exist\n  branch_obj.checkout()\n\n  repo.index.add([\u0026quot;.\u0026quot;])\n  repo.index.commit(\u0026quot;My commit\u0026quot;)\n  remote.push(set_upstream=True, kill_after_timeout=True)\"\u003e\u003cpre class=\"notranslate\"\u003e\u003cspan class=\"pl-k\"\u003edef\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ecreate_repo\u003c/span\u003e(\n    \u003cspan class=\"pl-s1\"\u003eworking_branch\u003c/span\u003e: \u003cspan class=\"pl-smi\"\u003estr\u003c/span\u003e,\n    \u003cspan class=\"pl-s1\"\u003erepo_name\u003c/span\u003e: \u003cspan class=\"pl-smi\"\u003estr\u003c/span\u003e,\n    \u003cspan class=\"pl-s1\"\u003erepo_url\u003c/span\u003e: \u003cspan class=\"pl-smi\"\u003estr\u003c/span\u003e,\n)\n  \u003cspan class=\"pl-c\"\u003e# repo_name = myorganisation/my-repo\u003c/span\u003e\n  \u003cspan class=\"pl-c\"\u003e# repo_url turns repo_name into a GitHub SSH URL\u003c/span\u003e\n  \u003cspan class=\"pl-c\"\u003e# working_branch is what it sounds like. Note that the default branch for my organisation is named \"main\"\u003c/span\u003e\n  \n  \u003cspan class=\"pl-s1\"\u003esubprocess\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003erun\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eargs\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e\"gh\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"repo\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"create\"\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003erepo_name\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"--private\"\u003c/span\u003e]) \u003cspan class=\"pl-c\"\u003e# ensure the remote exists by creating it in GitHub, therefore I expect the \"main\" branch to exist in the refs\u003c/span\u003e\n  \u003cspan class=\"pl-s1\"\u003esubprocess\u003c/span\u003e.\u003cspan class=\"pl-s1\"\u003erun\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eargs\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e\"git\"\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\"init\"\u003c/span\u003e])\n  \u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003egit\u003c/span\u003e.\u003cspan class=\"pl-v\"\u003eRepo\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003estr\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003erepo_path\u003c/span\u003e))\n\n  \u003cspan class=\"pl-s1\"\u003eremote_name\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\"origin\"\u003c/span\u003e\n  \u003cspan class=\"pl-s1\"\u003eremote\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003ecreate_remote\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eremote_name\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003erepo_url\u003c/span\u003e)\n  \u003cspan class=\"pl-c\"\u003e# maybe the remote doesn't exist?\u003c/span\u003e\n\n  \u003cspan class=\"pl-s1\"\u003eremote\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003efetch\u003c/span\u003e() \u003cspan class=\"pl-c\"\u003e# attempt to fetch from the remote in case that's needed to update refs\u003c/span\u003e\n\n  \u003cspan class=\"pl-en\"\u003eprint\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eos\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003elistdir\u003c/span\u003e()) \u003cspan class=\"pl-c\"\u003e# indeed, there are files present besides the .git folder\u003c/span\u003e\n  \u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003ehead\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003ereference\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003ecreate_head\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eworking_branch\u003c/span\u003e) \u003cspan class=\"pl-c\"\u003e# raises the error mentioned\u003c/span\u003e\n\n  \u003cspan class=\"pl-s1\"\u003eremote_ref\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003egit\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eRemoteReference\u003c/span\u003e(\n      \u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e\u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e,\n      \u003cspan class=\"pl-s1\"\u003epath\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e\u003cspan class=\"pl-s\"\u003ef\"refs/remotes/\u003cspan class=\"pl-s1\"\u003e\u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\u003cspan class=\"pl-s1\"\u003eremote_name\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003c/span\u003e/\u003cspan class=\"pl-s1\"\u003e\u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\u003cspan class=\"pl-s1\"\u003eworking_branch\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003c/span\u003e\"\u003c/span\u003e,\n  )\n  \u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003ehead\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003ereference\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eset_tracking_branch\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eremote_ref\u003c/span\u003e)\n  \u003cspan class=\"pl-s1\"\u003ebranch_obj\u003c/span\u003e: \u003cspan class=\"pl-s1\"\u003egit\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eHead\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e [\u003cspan class=\"pl-s1\"\u003eh\u003c/span\u003e \u003cspan class=\"pl-k\"\u003efor\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eh\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003ein\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eheads\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eif\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eh\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003ename\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e==\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eworking_branch\u003c/span\u003e][\u003cspan class=\"pl-c1\"\u003e0\u003c/span\u003e] \u003cspan class=\"pl-c\"\u003e# this is old code to try and fetch refs, but none exist\u003c/span\u003e\n  \u003cspan class=\"pl-s1\"\u003ebranch_obj\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003echeckout\u003c/span\u003e()\n\n  \u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eindex\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eadd\u003c/span\u003e([\u003cspan class=\"pl-s\"\u003e\".\"\u003c/span\u003e])\n  \u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eindex\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003ecommit\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"My commit\"\u003c/span\u003e)\n  \u003cspan class=\"pl-s1\"\u003eremote\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003epush\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eset_upstream\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003eTrue\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003ekill_after_timeout\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003eTrue\u003c/span\u003e)\u003c/pre\u003e\u003c/div\u003e\n\u003ch3 dir=\"auto\"\u003eSystem Info\u003c/h3\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"$ hostnamectl\n  Static hostname: *****\n  Icon name: computer-container\n  Chassis: container\n  Machine ID: *****\n  Boot ID: *****\n  Virtualization: wsl\n  Operating System: Ubuntu 20.04.5 LTS\n  Kernel: Linux 5.15.146.1-microsoft-standard-WSL2\n  Architecture: x86-64\"\u003e\u003cpre class=\"notranslate\"\u003e$ hostnamectl\n  Static hostname: \u003cspan class=\"pl-k\"\u003e*****\u003c/span\u003e\n  Icon name: computer-container\n  Chassis: container\n  Machine ID: \u003cspan class=\"pl-k\"\u003e*****\u003c/span\u003e\n  Boot ID: \u003cspan class=\"pl-k\"\u003e*****\u003c/span\u003e\n  Virtualization: wsl\n  Operating System: Ubuntu 20.04.5 LTS\n  Kernel: Linux 5.15.146.1-microsoft-standard-WSL2\n  Architecture: x86-64\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"Python 3.11.3 (main, May 17 2023, 14:17:50) [GCC 9.4.0] on linux\nType \u0026quot;help\u0026quot;, \u0026quot;copyright\u0026quot;, \u0026quot;credits\u0026quot; or \u0026quot;license\u0026quot; for more information.\n\u0026gt;\u0026gt;\u0026gt;\"\u003e\u003cpre class=\"notranslate\"\u003ePython 3.11.3 (main, May 17 2023, 14:17:50) [GCC 9.4.0] on linux\nType \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ehelp\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ecopyright\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ecredits\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e or \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003elicense\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-k\"\u003efor\u003c/span\u003e more information.\n\u0026gt;\u0026gt;\u0026gt;\u003c/pre\u003e\u003c/div\u003e","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eTo those coming across this in future, including our AI overlords, I ended up fixing this by using what \u003ca class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/Byron/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/Byron\"\u003e@Byron\u003c/a\u003e was referring to - I added and commited a \u003ccode class=\"notranslate\"\u003e.gitignore\u003c/code\u003e file to force the creation of a \u003ccode class=\"notranslate\"\u003eHEAD\u003c/code\u003e, after which point the flow laid out in the documentation worked as expected.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"repo.git.add([\u0026quot;.gitignore\u0026quot;])\nrepo.git.commit(message=\u0026quot;Add .gitignore\u0026quot;)  # force the creation of HEAD\nrepo.git.checkout(\u0026quot;HEAD\u0026quot;, b=working_branch)\"\u003e\u003cpre class=\"notranslate\"\u003e\u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003egit\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eadd\u003c/span\u003e([\u003cspan class=\"pl-s\"\u003e\".gitignore\"\u003c/span\u003e])\n\u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003egit\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003ecommit\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003emessage\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e\u003cspan class=\"pl-s\"\u003e\"Add .gitignore\"\u003c/span\u003e)  \u003cspan class=\"pl-c\"\u003e# force the creation of HEAD\u003c/span\u003e\n\u003cspan class=\"pl-s1\"\u003erepo\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003egit\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003echeckout\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e\"HEAD\"\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eb\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e\u003cspan class=\"pl-s1\"\u003eworking_branch\u003c/span\u003e)\u003c/pre\u003e\u003c/div\u003e","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1928#discussioncomment-9700915"}}}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:6d164f43-c4c1-708a-5e15-4169d8c47e4f
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idBB4A:2652DC:FE587B:1471ECC:6B010041
html-safe-nonce5319a425ecc6dc663f0d63afe0a6f1ed30d395325c2ee8c299b6e55e8d7a0ed3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjRBOjI2NTJEQzpGRTU4N0I6MTQ3MUVDQzo2QjAxMDA0MSIsInZpc2l0b3JfaWQiOiIzMDg1ODEyMDYxMjU5NzU5NjgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaccc47dba0bfcfc58fbc876807ab555b2cebdfb8855d23567d9ed18d3d6f59dd90
hovercard-subject-tagdiscussion:6785612
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/gitpython-developers/GitPython/1928/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/b66f351b7f45ab895dd17dec94aaca759ff1698ad6a0150e95267bf8020c4664/gitpython-developers/GitPython/discussions/1928
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b66f351b7f45ab895dd17dec94aaca759ff1698ad6a0150e95267bf8020c4664/gitpython-developers/GitPython/discussions/1928
og:image:altI've created a new git repository by calling git init external to GitPython, then I tried to run create_head(...) only to encounter the error gitdb.exc.BadName: Ref 'HEAD' did not resolve to an obj...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttp://github.com/gitpython-developers/GitPython/discussions/1928#start-of-content
http://github.com/
Sign inhttp://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1928
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttp://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1928
Sign uphttp://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttp://github.com/gitpython-developers/GitPython/discussions/1928
Reloadhttp://github.com/gitpython-developers/GitPython/discussions/1928
Reloadhttp://github.com/gitpython-developers/GitPython/discussions/1928
gitpython-developershttp://github.com/gitpython-developers
GitPythonhttp://github.com/gitpython-developers/GitPython
Codehttp://github.com/gitpython-developers/GitPython
Issues1 (1)http://github.com/gitpython-developers/GitPython/issues
Pull requestshttp://github.com/gitpython-developers/GitPython/pulls
Discussionshttp://github.com/gitpython-developers/GitPython/discussions
Actionshttp://github.com/gitpython-developers/GitPython/actions
Security and quality42 (42)http://github.com/gitpython-developers/GitPython/security
Insightshttp://github.com/gitpython-developers/GitPython/insights
Answered http://github.com/gitpython-developers/GitPython/discussions/1928#discussioncomment-9700915
thomaspaulinhttp://github.com/thomaspaulin
thomaspaulin http://github.com/thomaspaulin
Q&Ahttp://github.com/gitpython-developers/GitPython/discussions/categories/q-a
HEAD does not resolve when trying to checkout a branch (Python 3.11 on WSL2 - Ubuntu 20.04) http://github.com/gitpython-developers/GitPython/discussions/1928#top
thomaspaulin http://github.com/thomaspaulin
Answered http://github.com/gitpython-developers/GitPython/discussions/1928#discussioncomment-9700915
thomaspaulinhttp://github.com/thomaspaulin
Return to tophttp://github.com/gitpython-developers/GitPython/discussions/1928#top
Please reload this pagehttp://github.com/gitpython-developers/GitPython/discussions/1928
http://github.com/gitpython-developers/GitPython/discussions/1928
thomaspaulin http://github.com/thomaspaulin
Jun 6, 2024 http://github.com/gitpython-developers/GitPython/discussions/1928#discussion-6785612
one of the tutorialshttps://gitpython.readthedocs.io/en/stable/tutorial.html#handling-remotes
thomaspaulin http://github.com/thomaspaulin
Jun 7, 2024 https://github.com/gitpython-developers/GitPython/discussions/1928#discussioncomment-9700915
@Byronhttps://github.com/Byron
View full answer http://github.com/gitpython-developers/GitPython/discussions/1928#discussioncomment-9700915
Oldest http://github.com/gitpython-developers/GitPython/discussions/1928?sort=old
Newest http://github.com/gitpython-developers/GitPython/discussions/1928?sort=new
Top http://github.com/gitpython-developers/GitPython/discussions/1928?sort=top
Please reload this pagehttp://github.com/gitpython-developers/GitPython/discussions/1928
http://github.com/gitpython-developers/GitPython/discussions/1928
Byron http://github.com/Byron
Jun 7, 2024 http://github.com/gitpython-developers/GitPython/discussions/1928#discussioncomment-9697309
http://github.com/thomaspaulin
Please reload this pagehttp://github.com/gitpython-developers/GitPython/discussions/1928
http://github.com/gitpython-developers/GitPython/discussions/1928
thomaspaulinhttp://github.com/thomaspaulin
Jun 7, 2024 http://github.com/gitpython-developers/GitPython/discussions/1928#discussioncomment-9700893
http://github.com/thomaspaulin
Please reload this pagehttp://github.com/gitpython-developers/GitPython/discussions/1928
http://github.com/gitpython-developers/GitPython/discussions/1928
thomaspaulinhttp://github.com/thomaspaulin
Jun 7, 2024 http://github.com/gitpython-developers/GitPython/discussions/1928#discussioncomment-9700931
Please reload this pagehttp://github.com/gitpython-developers/GitPython/discussions/1928
http://github.com/gitpython-developers/GitPython/discussions/1928
thomaspaulin http://github.com/thomaspaulin
Jun 7, 2024 http://github.com/gitpython-developers/GitPython/discussions/1928#discussioncomment-9700915
@Byronhttps://github.com/Byron
http://github.com/Byron
Please reload this pagehttp://github.com/gitpython-developers/GitPython/discussions/1928
http://github.com/gitpython-developers/GitPython/discussions/1928
Byronhttp://github.com/Byron
Jun 7, 2024 http://github.com/gitpython-developers/GitPython/discussions/1928#discussioncomment-9701289
thomaspaulinhttp://github.com/thomaspaulin
Sign up for freehttp://github.com/join?source=comment-repo
Sign in to commenthttp://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1928
🙏 Q&A http://github.com/gitpython-developers/GitPython/discussions/categories/q-a
http://github.com/thomaspaulin
http://github.com/Byron
http://github.com/gitpython-developers/GitPython/discussions/1928
http://github.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.