Giter VIP home page Giter VIP logo

Comments (4)

dirk-thomas avatar dirk-thomas commented on August 22, 2024

Your branches branch1 / branch2 are likely not tracking a remote branch. I assume you can't call git pull for those successfully either. Can you confirm this?

This can happen if you have create the branches only locally or only pushed them a remote without using -u. If this is the case git does not know which remote branch you local branch is associated to and therefore vcstool can't generate a url / version for it.

from vcstool.

jvgomez avatar jvgomez commented on August 22, 2024

Hi Dirk,

Both repos have the origin remote properly set (I regularly pull). These branches are created with git checkout -b and then I push them (usually without the -u option), but I can do git pull origin branchX in all cases.

However, you are right :) After doing git push -u origin branchX I got the message
Branch X set up to track remote branch X from origin. Everything up-to-date

And now there it no warning (it is surprising that my other repos are working, I never do the -u!). Thank you so much!

from vcstool.

NikolausDemmel avatar NikolausDemmel commented on August 22, 2024

@jvgomez just as a note: On recent git versions, if you check out a remote branch as a local branch for the first time using git checkout my-branch (which works as long as my-branch is unique among your remotes), then the local branch is set up to be tracking automagically.

from vcstool.

jvgomez avatar jvgomez commented on August 22, 2024

I see, and now everything makes sense, thank you @NikolausDemmel !

from vcstool.

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.