Code Monkey home page Code Monkey logo

Comments (6)

stefanhaller avatar stefanhaller commented on August 12, 2024 1

Fixed by #3712.

from lazygit.

mark2185 avatar mark2185 commented on August 12, 2024

You can unset the upstream from the menu under u.

The default behavior is that the local branch tracks the upstream, which is nifty for most use cases.

from lazygit.

gabriGutiz avatar gabriGutiz commented on August 12, 2024

I was able to change the upstream, but in my case makes more sense to not set the upstream. I want to make a task based on a teammate's change without changing his branch.

Is that a way to change this default behavior locally?

from lazygit.

stefanhaller avatar stefanhaller commented on August 12, 2024

I think I would be fine with changing the n command to not automatically track the remote branch. I find it unlikely that people want to create a branch with a different name that still tracks the remote branch; and for creating a branch with the same name that tracks the remote branch, they can use space instead.

@gabriGutiz In the meantime, a workaround is to hit enter on the remote branch to see its commits, and then hit n on the head commit; this will create a local branch that doesn't track anything.

from lazygit.

gabriGutiz avatar gabriGutiz commented on August 12, 2024

Thanks, @stefanhaller! I'll use this workaround so on.

Just adding that I agree with what you said, It's a little annoying that I have to delete the upstream to not make a mess by mistake or do what you described!

Thanks for the attention!!

from lazygit.

jesseduffield avatar jesseduffield commented on August 12, 2024

I think I would be fine with changing the n command to not automatically track the remote branch. I find it unlikely that people want to create a branch with a different name that still tracks the remote branch; and for creating a branch with the same name that tracks the remote branch, they can use space instead.

I agree

from lazygit.

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.