Code Monkey home page Code Monkey logo

Comments (5)

kennethreitz avatar kennethreitz commented on July 30, 2024

The beauty of legit is that it's fully supplementary to the standard commands.

If you need to pull from another remote, than do so :)

from legit.

pjv avatar pjv commented on July 30, 2024

so in other words, i am not actually missing anything and legit is really designed to be used for single remote development -- i.e. it's meant for working more on my own stuff than collaborating with others.

sorry if i am being obtuse -- i am just trying to understand the big picture.

so if i want to use legit for a collaborative project like i outlined in my original comment above, and given that by default it works on the first remote, i should clone my fork first and then add the owner's repo as an additional remote and then when i want to fetch/pull from the owner's repo i do that with standard git commands. ya?

from legit.

kennethreitz avatar kennethreitz commented on July 30, 2024

Actually, someone just sent a pull request that allows you to do this:

$ git config legit.remote myfork

And it'll use that remote instead :)

It hasn't been released yet though.

from legit.

david-forever avatar david-forever commented on July 30, 2024

Has this change been merged?

I have two remotes:

(venv)~/git/whatever-proto1{master} $ git remote -v
heroku [email protected]:whatever-proto1.git (fetch)
heroku [email protected]:whatever-proto1.git (push)
origin [email protected]:whatever-proto1.git (fetch)
origin [email protected]:whatever-proto1.git (push)

legit publish

(venv)~/git/forever-proto1{master} $ legit publish

  • master (published)
    sprint1 (published)
    sprint2 (published)
    sprint3 (published)
    sprint4 (published)
    sprint5 (published)
    test_sprint1 (unpublished)

Unfortunately, legit publish refuses to push to origin no matter what I've tried including:

git config legit.remote origin

and

git branch --set-upstream sprint1 origin/sprint1

As it stands, legit publish seems unusable with this configuration or am I missing some git command to tell legit which remote to use?

Thanks!

from legit.

weakish avatar weakish commented on July 30, 2024

This issue should have been fixed in recent versions of legit.

from legit.

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.