From the course: Git Essential Training (2023)
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Solution: Make a change and revert
From the course: Git Essential Training (2023)
Solution: Make a change and revert
- [Instructor] So this is our starting point. We had importantfile.md with a line saying, "this is an important file." And I'm going to make a git repository out of this. So I'll do git init and now I have a git repository. I'll add it and I'll create my first commit, initial commit. So this is staged and committed. And now I'm going to add the update to this file. So I'm going to say, "this is an important update." I'll save this. Git add, git commit with the message saying, "important file." So we've now committed our changes. After that, you will have created a folder and added the file to it. (computer beeps) You're okay to move it. And we'll do git add, git commit m added importantfile to importantfolder. Remember, you can check git status every time to see if you're still on track. And after that we'll check the log with one line to see them all neatly stacked together. And we want to go back to where we…
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)
-
-