Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit button disabled for unclear reasons #4354

Closed
skalnik opened this issue Mar 28, 2018 · 34 comments
Closed

Commit button disabled for unclear reasons #4354

skalnik opened this issue Mar 28, 2018 · 34 comments

Comments

@skalnik
Copy link

skalnik commented Mar 28, 2018

Description

When using GitHub Desktop, the commit button is disabled until a commit summary is typed in. However, for users who are new to Git & GitHub, its not entirely clear why the button is disabled.

Version

  • GitHub Desktop: 1.1.1
  • Operating system: MacOS 10.13.3

Steps to Reproduce

  1. Make some changes to a git repo
  2. See that the commit button is disabled and there is no indication of why

Expected Behavior

The Commit Summary field is highlighted in red or indicated as required in some manner

Actual Behavior

No indication is given.

@shiftkey
Copy link
Member

👍 - the current tooltip is just there to ensure the whole branch name can be seen

screen shot 2018-03-29 at 9 31 55 am

I'm not sure how I feel about the suggestion for highlighting missing fields in red, but this feels like form validation which I'm sure @desktop/design has some input about.

@skalnik
Copy link
Author

skalnik commented Mar 28, 2018

I'm not sure how I feel about the suggestion for highlighting missing fields in red, but this feels like form validation which I'm sure @desktop/design has some input about.

Yeah, that was just a suggestion. I think any kind of indication that there are required fields missing and what they are would be an improvement here 😸

@marvinschopf
Copy link
Contributor

I would like to work on it, unless anyone else is already working on it?!

@shiftkey
Copy link
Member

I would like to work on it, unless anyone else is already working on it?!

@magicmarvman let's hold off for a bit to think about what we want to do to address the issue. Once we've figured that out, we'll label issues that can be worked on by external contributors with help wanted - so keep an eye on that label in the meantime!

@marvinschopf
Copy link
Contributor

Ok. Thank you!

@donokuda
Copy link
Contributor

donokuda commented Apr 9, 2018

I think the quickest solution here is to update the placeholder to mention that it's required:

We should also add aria-required="true" to that specific field.

@whatsim
Copy link

whatsim commented Apr 10, 2018

I'm currently teaching an introductory web class at an art school and we use Github Pages as a webhost for student work (hi @skalnik). Admittedly, this may not be indicative of the large portion of github desktop users, but I've repeatedly over the course had students approach/email me after having spent time clicking on the commit button, over and over, to tell me that their github was broken or didn't like their code, or the other sorts of things people tell you when their mental model is still incomplete and they're trying to reason about whats not working.

I get not wanting to have the summary field be too loud in the normative case, but I think there may be room for a slightly more aggressive intervention in the case you are clicking on commit and don't have a summary written. My gut is the (required) may be too subtle in the context of a screen full of staged changes, at least for users who are similar to my students.

Anyway, my 2¢

@verny2verny
Copy link

OMG, this totally needs fixing. As a relatively new user to GIT, I just spent the last two hours trying to setup a fresh repository and be able to commit my work. This process involved remaking everything from scratch at least a dozen times before I finally stumbled upon this. Even if this was mentioned somewhere in the quickstart guide, or other manuals for the GitHub extension.

Vern

@outofambit outofambit added the design-input-needed Issues that require design input from the core team before the work can be started label Sep 3, 2019
@outofambit
Copy link
Contributor

hi @verny2verny can you share what version of desktop you're hitting this on? i'm sorry this was so frustrating. i would expect #4429 to help prevent at least some of this pain and it would be really helpful to know more about your experience.

@verny2verny
Copy link

I am currently using version 1.4.0, GitHub for Unity, downloaded via the asset store. Unity version 2019.1.12f1 on a Windows10pr PC

With this version, at least, there is no indicator saying that a summary is needed in order to make a commit.

My experience was following the GitHub QuickGuide (pdf) that comes with the package.

Nowhere in this guide, nor in the plugin is it mentioned that a summary is required in order to commit. Without anything entered in the summary field, the commit button remains grayed out (with no indication as to why).

From the looks of 4429, this may already be addressed in latest version? Or at least, it does look like it is being looked into.

Vern

@outofambit
Copy link
Contributor

ah thanks @verny2verny for the extra info! GitHub for Unity is a different project than GitHub Desktop. You can find the proper repo here: https://github.com/github-for-unity/Unity. thanks!

@outofambit outofambit removed the design-input-needed Issues that require design input from the core team before the work can be started label Sep 3, 2019
@outofambit
Copy link
Contributor

closing this issue since we haven't had any further reports of this problem since #4429. thanks all!

@mr5z
Copy link

mr5z commented Mar 9, 2020

Ugh, I'm not new to git and just tried GitHub for Desktop today and it took me almost an hour to figure out what I'm missing. Turns out the commit message I'm filling was the description field and the actual commit message was above it.

I think the button shouldn't be disabled. Instead prompt a useful error message that would lead the user to correct their mistakes.

Annotation 2020-03-09 223151

@KhanA-Ahad
Copy link

commit to master button disable.Any one help?

@steveward
Copy link
Member

@KhanA-Ahad have you entered a commit message in the Summary (required) field? Do you have uncommitted changes in your repository?

@DClyde
Copy link

DClyde commented Aug 26, 2020

For what it is worth I did the exact same thing as @mr5z. I treated the "Summary (Required)" as the title bar for the Description box and after typing into the description box and fumbling around for a couple of minutes flabbergasted as to the issue did I figure it out upon searching the internet and finding this issue.

Not my first time using GitHub for Desktop, but definitely not often enough that I was like "oh right"

@LucianoCalsolari
Copy link

LucianoCalsolari commented Aug 29, 2020

It is easy ,I don't know why but if you delete a GitHub(repository , localpath space) folder and try again,it works.

@dbperry17
Copy link

I had the same issue as @mr5z. My laptop screen on my desk turned out to be angled just right to make the actual summary box blend in to the background behind it so that the description box looked like it was where I was meant to put the required summary. It would be really nice if maybe the box was highlighted in red or something if you tried to click commit without it filled in.

@sonammeena
Copy link

After writing something on the summary (required) portion. I'm continually getting this
IMG20210303095129.

I don't know what is this. please help me to figure out this.

@tidy-dev
Copy link
Contributor

tidy-dev commented Mar 3, 2021

@sonammeena It would appear that your git config email is not able to detect it as an email address. Do you have an email address you can update your git config with? (If you have a github.com account, preferably use the email associated with it)

If you are not familiar with the command line as shown in the error,
You can update it inside the Desktop by going to:
Windows: File > Options
or
Mac: File > Preferences

Then, navigate to Git menu item (left hand menu pane)

Then fill in the Name and Email fields and hit Save.

@devasia2112
Copy link

The issue was open in 2018, we are in 2021 and the problem persist, not only in the Desktop but also in the web interface, the button "commit changes" is disabled in all my repositories, I do not know if deserve the time to dig into this thing, feels like time wasted.
Why nobody cares about a simple problem like that?
Just saying, there is quite a few good option to github/microsoft. I may pick one soon.

@finnbear
Copy link

A workaround I found was to make the commit manually, outside of Atom, such as with git commit -m "..." and git push it manually. This got Atom's commit button un-stuck for me.

@ShawnLi1102
Copy link

Don't do batch commit by selecting all files. If you select more than one file, the commit button is grayed out. This caught me in surprise and it's kind of stupid. Just select one file at a time and commit button will be enabled.

@Cantersoft
Copy link

I also got hung up on this. I didn't even see the summary field until I found this page.

@thisisawesome1994
Copy link

I get commit field unhighlighted when making a change using the website interface. I make a change, but cannot click commit button.

@steveward
Copy link
Member

@thisisawesome1994 see this guide for information about how to edit/commit files directly on GitHub. This issue tracker is for GitHub Desktop.

@NotQuiteCosmic
Copy link

As someone who is relatively new to Git and GitHub Desktop, I too hit this summary-field stumbling block. Looking back, a little bit of reading would have revealed the issue (the required is fairly obvious) but the fact of the matter is that it took me the better part of an hour to figure out. While most people wouldn't be caught up by this, I think a relatively simple and very helpful tool would be the following: if someone clicks on the commit button without any summary entered, the Summary box becomes selected, clearly outlined by blue and with typing enabled (much like many login pages do when a username/password isn't entered). This could help mitigate this frustrating barrier to entry.

@vkenn
Copy link

vkenn commented Mar 7, 2022

Who managed to solve this problem ,I added summary but still nothing works
image

@steveward
Copy link
Member

@vkenn it looks like you're committing on github.com, not in GitHub Desktop. I'd recommend reaching out to GitHub Support if you are having issues committing on github.com. I believe there have been browser issues with committing in the past, so it may be worth trying a different browser to see if that helps.

@jaszczykj
Copy link

Who managed to solve this problem ,I added summary but still nothing works image

just disable adblock and hard refresh

@vkenn
Copy link

vkenn commented Mar 10, 2022

Thank you @jaszczykj it solved it .Have been banging my head for a whole weekend .

@xbdh
Copy link

xbdh commented Jun 16, 2022

disable Ghostery chorme extension may solve

@madCakes
Copy link

madCakes commented Aug 3, 2022

@xbdh do you know why ghostery causes this issue?

@ReneeDeLuca
Copy link

just disable adblock and hard refresh

Thank you @jaszczykj! Disabled adblock and ghostery and now it's working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests