question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Commit ignores selected files and puts all changed files into commit

See original GitHub issue

Description

When committing changes all files are committed regardless of if they are selected to be committed or not.

Version

1.6.4

  • GitHub Desktop:

  • Operating system: 10.14.1 Mojave

Steps to Reproduce

  1. Modify more than one file in the repo.
  2. Note that multiple files are listed under changes column.
  3. Click the top checkbox to unselect all.
  4. Click a single file to commit, note one file has checkbox checked and no others do.
  5. Press commit button

Expected Behavior

Only selected file will be committed.

Actual Behavior

All files are committed, including unchecked files.

Additional Information

I’ve uninstalled and re-installed, no change. Actually noted this in previous version but didn’t report because I was sure it was a big enough bug someone would have reported it and expected the next version to clean it up.

In the attached log file I changed two files, only selected one to commit, and it committed both files.

Logs

macOS logs location: `~/Library/Application Support/GitHub 2019-03-13.desktop.production.log

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stevewardcommented, Mar 14, 2019

@ChessMess thanks for the report. I’ve so far been unable to reproduce this successfully. Would you be able to upload a short video or GIF showing this behavior?

0reactions
no-response[bot]commented, Sep 30, 2021

Thank you for your issue! We haven’t gotten a response to our questions above. With only the information that is currently in the issue, we don’t have enough information to take action. We’re going to close this but don’t hesitate to reach out if you have or find the answers we need. If you answer our questions above, a maintainer will reopen this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add all files to a commit except a single file? - Stack Overflow
If the file you want to ignore is already in the repository, this method will not work unless you do this: git rm...
Read more >
How to exclude or ignore some files from git commit
You will need to use the git update-index and –assume-unchanged to exclude files from git commit. Syntax : 1. 2. git update-index --assume-unchanged...
Read more >
2.2 Git Basics - Recording Changes to the Repository
As you edit files, Git sees them as modified, because you've changed them since your last commit. As you work, you selectively stage...
Read more >
Committing Your Changes To The Repository - TortoiseSVN
The Commit Dialog​​ Select any file and/or folders you want to commit, then TortoiseSVN → Commit.... The commit dialog will show you every...
Read more >
.gitignore file - ignoring files in Git | Atlassian Git Tutorial
.gitignore · If you want to ignore a file that you've committed in the past, you'll need to delete the file from your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found