![]() There we wanted to make a change – that is, we wished to change the "puppy" to "pup" which is not staged.įine, first we commit the staged changes by git commit -m "intro to cat and dog": If you can't remember what we staged, they introduced themselves as kitty and puppy. First we commit our staged changes in our cat_vs_dog repo. You can do this by adding a single flag -staged or -cached. How to Compare Staged Changes in Gitīefore you commit your changes, you can compare the staged changes with the last commit. Now, you have a strong foundation so you can start to learn more commands with a smile. ![]() Because you've already gotten your hands dirty with diff's outcome. Take a tiny second to celebrate your cognitive effort. That's why it displays " No newline at end of file" in the diff's outcome. This means that, in the above example, I added only one line and I modified the same line. No newline at the end of the file – The text says that there are no lines after those modified lines.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |