About 'Back-pedalling With Version Control'!

In this video (objectives)…

  1. Use git stash to safely discard our changes.
  2. Use branch and reset to discard multiple commits.

After watching (learning outcomes)…

Restore a project that has been tracked under version control to a previous commit safely.

(Unique Video Reference: 32_AA_CU2)

We would love to know…

  • What you found good about this lecture?
  • What we could do better?

Remember that you can reply to this topic, or create a new topic. The easiest way to create a new topic is to follow the link in Resources. That way the topic will…

  • Be in the correct forum (for the course).
  • Be in the right sub-forum (for the section)
  • Have the correct lecture tag.

Enjoy your stay in our thriving community!

Thanks for Including this lesson. Now I feel more ready to experiment

I finally got Sourcetree working in this lesson (I was getting some kind of error previously when trying to set it up) and then immediately ruined everything in the next lesson. Stash sure is helpful.

[Update: I posted too soon, it’s fine now that I have done another commit. The Dead End is now red and the master is blue, all is well in Sourcetree land :sunglasses: ]

I lost some recent changes playing with Stash, was good practice to redo them myself.

Now, having tried Branch I have my master timeline red and the dead-end branch blue.

source-tree-weirdness

sourcetree-ok

I’d like to share this with you… for those who are new to Sourcetree and GIT.

Learn Sourcetree with Bitbucket Cloud

Ben: “We’re now going to make a series of changes…”
Siri (in background): “My ears are burning.”

Mine is messed up, I don’t understand what happened. I created a topic about it on this part but I’m still confused:

image

And now I deleted the branch when I wanted to delete the other stuff in front :confused:

image

And the branch can’t be deleted:

image

These branches are confusing me :cry:

How do I get rid of everything and have only the one now selected be the master and no other tag??

I figured it out! I forgot to press force delete! All fine now…

image

I figured out what my original problem was: I didn’t switch to master branch and that messed everything up. Hope this was helpful for anyone!

Did the lecture again, all working smoothly

image

Privacy & Terms