Code Monkey home page Code Monkey logo

Comments (7)

mark2185 avatar mark2185 commented on September 17, 2024 1

Ah, now I get it.

For the time being, you can press ctrl+a to jump to the beginning of the line and use delete to delete the origin part and replace it with fork.

from lazygit.

stefanhaller avatar stefanhaller commented on September 17, 2024 1

Or use alt-left-arrow to jump over the branch name, and ctrl-w to delete the remote name and type another one.

These keybindings work in all of lazygit's text fields, it is useful to get used to them. I use them in the commit message panel all the time.

from lazygit.

mark2185 avatar mark2185 commented on September 17, 2024

Under which name does git push fork push the branch?

E.g. if you are on a branch performance_fix and do git push fork?

from lazygit.

Scoder12 avatar Scoder12 commented on September 17, 2024

It will push to whatever the upstream is set to for the current branch. You can check it with git branch -vv: SO link
I can't figure out why, I think this got set for me automatically the last couple times I used it while working.

from lazygit.

mark2185 avatar mark2185 commented on September 17, 2024

It will push to whatever the upstream is set to for the current branch. You can check it with git branch -vv: SO link

That's probably dictated by your global gitconfig.

And you want to push it under the same name, i.e. performance_fix to the upstream fork? If so, why delete the name from lazygit's push prompt?

from lazygit.

Scoder12 avatar Scoder12 commented on September 17, 2024

And you want to push it under the same name,

yes

why delete the name from lazygit's push prompt?

Because you need to delete it in order to move the cursor to the remote, so you change it from origin to fork.

from lazygit.

Scoder12 avatar Scoder12 commented on September 17, 2024

These keybinds don't seem to work on my system: Alt-left-arrow just adds [1;3D to the text for me, and ctrl+w has no effect. Probably my fault (I run a very niche distro, NixOS), but up until now I just figured lazygit didn't bother adding readline or whatever to the textboxes.

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.