Git Product home page Git Product logo

Comments (4)

pcottle avatar pcottle commented on June 12, 2024

Good catch! Do you think just switching to commit hashes instead would solve the inconsistency but still provide a valuable lesson?

from learngitbranching.

juanmv94 avatar juanmv94 commented on June 12, 2024

Definitely that could be a workaround until it’s fixed on the simulator, although I think the most common way of using the colon fetch is with a branch name origin (updating o/branch)

from learngitbranching.

pcottle avatar pcottle commented on June 12, 2024

Alright @juanmv94 just updated the level -- let me know what you think:
https://learngitbranching.js.org/?NODEMO&command=level%20remoteAdvanced6

from learngitbranching.

juanmv94 avatar juanmv94 commented on June 12, 2024

More issues discovered affecting fetch and pull commands:
I'm making a pull request fixing all these issues including the previous ones

git fetch origin foo:bar (with HEAD on o/foo up to date, bar branch still doesn't exists) --> Already up to date!

Examples:

git clone
git fetch origin main:foo

git fetch origin foo:bar (with current HEAD not part of history of foo) --> Your origin branch is out of sync with the remote branch and fetch cannot be performed

Examples:

git checkout -b foo c0
git commit
git clone
git fetch origin main:bar

git clone
git fetch origin c0:foo

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.