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

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