Git Product home page Git Product logo

Comments (4)

pcottle avatar pcottle commented on June 12, 2024

Yep that's the intended behavior when you specify a full set of arguments like that; the very last lesson explains this:
Screenshot 2024-01-13 at 3 25 15 PM
Screenshot 2024-01-13 at 3 26 11 PM
Screenshot 2024-01-13 at 3 26 35 PM

I'm not entirely sure why git just doesn't automatically update o/main for you in this case (I can't think of a time where you want o/main to diverge from the commits you have locally for the origin version of main) but you can fix it with a single command of git fetch origin main afterwards

from learngitbranching.

cirex-web avatar cirex-web commented on June 12, 2024

so is this comment wrong? @pcottle
image

from learngitbranching.

pcottle avatar pcottle commented on June 12, 2024

So I think there are a few things going on:

  1. is the git simulator currently working as designed for the lessons? Yes, I don't think it's a recent regression or it prevents levels from being completed

  2. should pulling always update the origin tracking branch even if you provide an argument? Probably (even if it doesn't in the simulator)

I started this project over a decade ago so it's very likely that either I missed this detail while implementing or maybe old versions of git didn't do this

from learngitbranching.

pcottle avatar pcottle commented on June 12, 2024

Anyways if you can find anything in the docs that confirm this, we can work on implementing the change

from learngitbranching.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.