AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Gitbook editor revert changes2/20/2023 ![]() ![]() Why not just copy and paste them back in my editor? Wouldn’t that have the same effect?Ī: You could, but it would be a lot more work-and because it’s manual, you run the risk of introducing errors or missing something, especially if you’ve made a bunch of changes across several files. Q: The output of the git diff command shows me all the things I have changed. This allows you to use Git even if your editor loses its undo stack. Git, on the other hand, can detect differences because it stores your changes on disk. And if you switch editors, your new editor will certainly not have the old one’s undo stack available. If you were to close your editor at the end of today, you probably wouldn’t be able to use your editor to undo your changes tomorrow. But many editors only keep the undo stack as long as you are using the editor. ![]() Q: Why can’t I just use my editor’s undo function to fix these kinds of mistakes?Ī: You can. This is what her commit history looks like: Her mind was racing with ideas for their invitation card, so she created a file called invitation-card.md and jotted down some ideas, along with a tentative date for the festivities. She created two files, guest-list.md and gift-registry.md, and committed them on the master branch. She initialized a new Git repository almost as soon as she put the phone down: she wanted to capture her notes about their guest list and gift registry ideas right away. Trinity just finished a conversation with Gitanjali and Aref. This is particularly useful, since Trinity and Armstrong are all about helping their clients figure out all their options-plans do change, and Git is a tool that allows Trinity and Armstrong to iterate quickly. This way, they can always use Git as their second (or third, in this case) brain. All of their ideas for invitation cards, guests, and gift lists are always tucked away in a Git repository that they create specifically for that client. Trinity and her partner Armstrong are true professionals-and huge proponents of Git. Gitanjali and Aref are newly engaged! They want to throw an engagement party with their closest friends, and to make sure they get it right, they’ve decided to hire Trinity, an event planner. Love is in the air, and we’ve got some news to share with you. ![]()
0 Comments
Read More
Leave a Reply. |