From the course: Git Essential Training
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Challenge: Make a change and revert
From the course: Git Essential Training
Challenge: Make a change and revert
- We've made it to the end of the chapter. I think you're up for another challenge. (upbeat music) We are going to make some changes and then revert some of them. So what you're going to do? First, you're going to create a file called "importantfile.md," which is a markdown file. Add a line in there that says "This is an important file." Now stage and commit the file, like we did in the previous chapter. Add a new line that says "This is an important update to the important file." Stage this and commit it. You've now made a change. Now we're going to create a folder called "important folder". And you drag the file to it. Stage and commit this. Finally, we want to move the file out of the folder. So you're going to revert back to the previous version. You can do this all locally just by committing. But you can also do it remotely by pushing in between. That's up to you.
Contents
-
-
-
-
-
-
-
(Locked)
Git status2m 17s
-
(Locked)
Edit a file and view changes2m 48s
-
(Locked)
Make use of the GUI of Visual Studio Code2m 46s
-
(Locked)
View commit history3m 26s
-
(Locked)
Delete files1m 20s
-
(Locked)
Rename files2m 4s
-
(Locked)
Working with folders2m 34s
-
(Locked)
Undo your changes2m 28s
-
(Locked)
Look back in Git history1m 53s
-
(Locked)
Revert to an old state2m 6s
-
(Locked)
Challenge: Make a change and revert1m 4s
-
(Locked)
Solution: Make a change and revert2m 1s
-
(Locked)
-
-