News for hackers. Stuff that matters.
Re:High-Level Problems with Git and How to Fix Them by enzanki_ars on Tuesday December 12, 2017 @01:54AM (#15903523)
With git, you can stage line by line, file by file. You don’t need to commit everything at once. Also, you can add the lines you want in to staging, then use the stash feature to temporarily save lines that you don’t want in the commit. This allow you to test the commit without all of the extra lines you don’t want.

I would highly suggest reading Pro Git [0], a well written book on not only how to use git, but also the best practices, common workflows, and some of the internals in to how git works. Many refer to it as the essential book on git.

[0]: https://git-scm.com/book/en/v2

There are no comments on this comment yet.