Partial commits in GitHub for Windows
Ever found yourself in a situation where your working directory contains a mix of changes that don’t quite fit together? It would be easy to commit it all at once…
Ever found yourself in a situation where your working directory contains a mix of changes that don’t quite fit together? It would be easy to commit it all at once and move on; however, small, focused commits are great for making it easy to review and discuss a branch of work – especially when working on a complex codebase.
But how can you choose which changes to use in a commit?
The newest release of GitHub for Windows supports selecting lines or blocks of changes when creating a commit. Simply click the desired lines in the gutter, create the commit, and leave the other changes for you to continue working on.
For people familiar with the command line, this change is similar to interactive staging using git add -i
or git add -p
.
Written by
Related posts
Seven years of open source: A more secure and diverse ecosystem
Explore insights into open source community growth, innovation, and inclusivity with an updated survey dataset.
GitHub Availability Report: December 2024
In December, we experienced two incidents that resulted in degraded performance across GitHub services.
Inside the research: How GitHub Copilot impacts the nature of work for open source maintainers
An interview with economic researchers analyzing the causal effect of GitHub Copilot on how open source maintainers work.