Category: patch mode

Git’s Patch Mode

Let’s say we’ve just changed some CSS in a file and we want to stage it with Git. You might do something like this: git add styles.css …and then we’d want to make a commit with that staged code: git commit -m "Fixed the CSS" I’ve been doing this for a long time, but there’s lots of problems with this ...