pcottle / learnGitBranching

An interactive git visualization and tutorial. Aspiring students of git can use this app to educate and challenge themselves towards mastery of git!
https://pcottle.github.io/learnGitBranching/
MIT License
30.16k stars 5.72k forks source link

Implemented --force for fetch/pull. Force using +src:dest #1142

Closed juanmv94 closed 2 months ago

netlify[bot] commented 2 months ago

Deploy Preview for xenodochial-hugle-b9ec84 ready!

Name Link
Latest commit d1a08323c6848e8d4ee2a77c8cf40e79098daf26
Latest deploy log https://app.netlify.com/sites/xenodochial-hugle-b9ec84/deploys/662e14bf33f65a0008190618
Deploy Preview https://deploy-preview-1142--xenodochial-hugle-b9ec84.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

pcottle commented 2 months ago

Awesome! Do you have a good command that would demonstrate the force functionality? was going to add a test...

pcottle commented 2 months ago

@juanmv94 I added a basic test case for this in 6cbd02ec01f6ff8430f9b15bb401c50c98c3c3d2, here's how I did it:

Can you think of a set of commands that would only work with git pull --force and maybe the +src syntax?

pcottle commented 2 months ago

Oh and that command pops up a dialog where you can copy the string easily:

Screenshot 2024-04-28 at 9 13 13 AM