Commit ignores selected files and puts all changed files into commit
See original GitHub issueDescription
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
- Modify more than one file in the repo.
- Note that multiple files are listed under changes column.
- Click the top checkbox to unselect all.
- Click a single file to commit, note one file has checkbox checked and no others do.
- 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:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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?
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.