Title: Issue · GitHub
Open Graph Title: Issue · atom/github
X Title: Issue · atom/github
Description: :octocat: Git and GitHub integration for Atom. Contribute to atom/github development by creating an account on GitHub.
Open Graph Description: :octocat: Git and GitHub integration for Atom. Contribute to atom/github development by creating an account on GitHub.
X Description: :octocat: Git and GitHub integration for Atom. Contribute to atom/github development by creating an account on GitHub.
Opengraph URL: https://github.com/atom/github
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Default branch name of new git repositories is `master`, despite init.defaultbranch settings","articleBody":"### Prerequisites\r\n\r\n* [X] Put an X between the brackets on this line if you have done all of the following:\r\n * Reproduced the problem in Safe Mode: \u003chttps://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode\u003e\r\n * Followed all applicable steps in the debugging guide: \u003chttps://flight-manual.atom.io/hacking-atom/sections/debugging/\u003e\r\n * Checked the FAQs on the message board for common solutions: \u003chttps://discuss.atom.io/c/faq\u003e\r\n * Checked that your issue isn't already filed: \u003chttps://github.com/issues?utf8=✓\u0026q=is%3Aissue+user%3Aatom\u003e\r\n * Checked that there is not already an Atom package that provides the described functionality: \u003chttps://atom.io/packages\u003e\r\n\r\n### Description\r\n\r\nWhen creating a new git repository via the built in Atom GUI, the default branch name is `master`, even though my default git branch name (`init.defaultbranch`) is `main` when invoking git from a terminal.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Open Atom in a new directory\r\n2. Create a new git repository using the `Create repository` button\r\n3. Add a file and make the first commit to the repository using the `Create detached commit` button\r\n4. Check the name of the created branch\r\n\r\n**Expected behavior:**\r\n\r\nThe branch created should be named to match either `init.defaultbranch` from the user's `gitconfig`, or to `main` (to match the default behaviour for new github repositories).\r\n\r\n**Actual behavior:**\r\n\r\nThe default branch is named `master`\r\n\r\n**Reproduces how often:**\r\n\r\n100%\r\n\r\n### Versions\r\n\r\nWindows 10\r\n```\r\n\u003e atom --version\r\n\r\nAtom : 1.60.0\r\nElectron: 9.4.4\r\nChrome : 83.0.4103.122\r\nNode : 12.14.1\r\n\u003e apm --version\r\napm 2.6.2\r\nnpm 6.14.13\r\nnode 12.14.1 x64\r\natom 1.60.0\r\npython 3.9.1\r\ngit 2.33.1.windows.1\r\nvisual studio\r\n```\r\n\r\n### Additional Information\r\n\r\n[My Stack Overflow post on this topic](https://stackoverflow.com/q/71787166/17200791): issue was reproduced on Ubuntu by other user\r\n","author":{"url":"https://github.com/TomVincentUK","@type":"Person","name":"TomVincentUK"},"datePublished":"2022-04-08T10:58:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2755/github/issues/2755"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:108fe014-3450-fe09-4d57-8ceaa1d9b395 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC10:260014:281D2BF:34CA6E4:6A5CD0E8 |
| html-safe-nonce | 7b499b20bfbbe0e04604e9638869d7c56ae22fe19644d2a69e286864986b14f6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzEwOjI2MDAxNDoyODFEMkJGOjM0Q0E2RTQ6NkE1Q0QwRTgiLCJ2aXNpdG9yX2lkIjoiMzIwNzIxOTY0OTg1NjcyMTEyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 850b1e7d9c1f657a118c031790971ca7ced2985dcf8f16678b2cd6ac8db55fdf |
| hovercard-subject-tag | repository:46155786 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/atom/github/issues/2755 |
| twitter:image | https://repository-images.githubusercontent.com/46155786/f049f980-6118-11e9-8e93-1852855ecefb |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/46155786/f049f980-6118-11e9-8e93-1852855ecefb |
| og:image:alt | :octocat: Git and GitHub integration for Atom. Contribute to atom/github development by creating an account on GitHub. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-cache |
| go-import | github.com/atom/github git https://github.com/atom/github.git |
| octolytics-dimension-user_id | 1089146 |
| octolytics-dimension-user_login | atom |
| octolytics-dimension-repository_id | 46155786 |
| octolytics-dimension-repository_nwo | atom/github |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 46155786 |
| octolytics-dimension-repository_network_root_nwo | atom/github |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width