0

I installed git and git-gui on my Mac yesterday (I'm a complete novice with Git). As I tried to use git-gui, I was neither able to create a new directory nor to clone an existing one from online.

However, as I tried cloning a directory through the command-line git ("*git clone https://github.com/rickumali/RickUmaliVanityWebsite.git*"), it executed successfully.

I tried reinstalling git-gui, but the problem persisted. What could be the issue, and what could be the next steps for troubleshooting? Would it be reasonable to just work through the command line if it seems difficult to get the GUI to work?

Here - https://i.stack.imgur.com/gR4XZ.jpg - please find the relevant screenshots: my attempts to create a new directory and clone a directory from online, the same error that appears in both of these situations, and the successful execution of cloning through the command line.

Appreciate any suggestions!

Info on the system: Mac OS version: Monterey 12.2; git version is 2.35.1; git-gui version is 0.21.0.99.gdf4f9e

Petro
  • 11
  • 2
  • Are there any extra messages beyond the blurb about setting a different default name for your main branch? If you give that a go maybe it'll show a more critical warning. – Jack Deeth Feb 10 '22 at 04:46
  • e.g. `git config --global init.defaultBranch main` to make the default branch be called "main" – Jack Deeth Feb 10 '22 at 04:47
  • 1
    I'll try this tomorrow and let you know how it goes! Thanks for the suggestion! – Petro Feb 10 '22 at 04:55
  • As I see it, there's not much enthusiasm for git-gui on the part of the core Git folks, and you're probably best served by avoiding it entirely. – torek Feb 10 '22 at 22:43
  • I changed the default branch name, and the error went away. I guess the error message was telling me to do just that. Isn't that confusing and hard to read, though! Mr Deeth, thanks for the solution. torek, thanks for the suggestion, I'll try to put greater emphasis on the command line git. Question is closed. Question – Petro Feb 11 '22 at 02:30

0 Answers0