Comments (14)
@tomaskallup
Push should be working as long as a remote is already set up. I admit it's pretty bare bones right now though. Also upstream
and pushremote
do the same thing currently and there is no way to set either from neogit.
You're welcome to help out if you want to :) The relevant parts are in popups/push.lua
and lib/git/push.lua
. We do want to take over the upstream/pushremote distinction from magit and some prompts to dynamically set the upstream when necessary are definitely needed.
from neogit.
Totally agree; as I said, pretty bare bones π
from neogit.
Agreed! I'll be upstreaming some changes that should solve for this with some ability to set git config values
(you can use my fork for now if you don't want to wait)
from neogit.
Ah I was wondering why the push isn't working at all, is this something I could perhaps help with? This seems to be open for quite some time and for me even the pushremote
isn't working.
from neogit.
I think I found the issue, on my end I have a huge file in the repo (97MB) and the push takes a long time. It would be nice to have some sort of progress bar or a loader to indicate, that the push is still ongoing.
from neogit.
We do want to take over the upstream/pushremote distinction from magit and some prompts to dynamically set the upstream when necessary are definitely needed
Am I right in thinking this would allow you to create a new local branch and then push it up to remote when it doesn't exist? i.e.git checkout -b my-new-branch && git push --set-upstream origin my-new-branch
At the moment I create the branch with neogit but then run the git push
manually
from neogit.
@itmecho no it would use the upstream but not set it up. Tbh I also think the current implementation is a bit annoying, but I don't really know how to do this correctly yet.
from neogit.
Hmm I was trying to think of how I would do it. Best I came up with was a new option in the push popup for "push and set upstream", then prompt for the remote name (or if there is only one just use that) and then prompt for the remote branch name (which could pre-populate with the current branch name). Those could also be set as defaults in the config.
That's just my use case though, not sure how it would fit in with other people's =\
from neogit.
Hacky version which "worked on my machine"
master...itmecho:proto/set-upstream
from neogit.
@itmecho I added a switch to the push popup in #131.
from neogit.
Hi, I am not sure if I should say this here, but could you add a --tags
flag for the push popup?
from neogit.
For explanation why there are two https://magit.vc/manual/magit.html#The-Two-Remotes but still doesnβt make sense to me. IMHO, feature branch should never know what its final destination will be and should only be push to my-fork/feature
. Whole merging (be it done with pull/merge-requests or via git send-email
) should be outside of the local git operations.
from neogit.
I work on many open source projects and set the origin name to the GitHub organisation or user account name, so I know where I am pushing too
It would be very useful to set where neogit pushes to when using p
from the push menu
Currently I use e
for elsewhere and type in the origin name I use for that repository.
I assume the value of the origin can be ascertained from the local Git repository.
from neogit.
Not knowing what you're force pushing to is part of the fun, especially when reviewing pull requests.
Jokes aside, as @CKolkey mentioned we are soon to upstream a lot of QOL improvements to neogit which will for example include better push.
from neogit.
Related Issues (20)
- NeogitWinSeparator has no default highlight
- Vertical split commit popup throws an error when closing or commiting in vsplit
- Tab not focused for secondary git repo the first time Neogit is opened
- Neogit fails to close staged diff split if commit editor is split instead of tab HOT 3
- Async errors + Neogit showing outdated state: neogit/lib/buffer.lua:349: Invalid buffer id: 44 HOT 15
- "Recent commits" section does not show if there are unmerged commits HOT 3
- ...al/share/nvim/lazy/neogit/lua/neogit/lib/item_filter.lua:18: bad argument #1 to 'new' (table expected, got boolean)
- `attempt to compare nil with number` when staging via visual-lines selection HOT 1
- Neogit showing incorrect/duplicate data in status buffer HOT 11
- Neogit starts producing errors when calling `neogit.open` twice from different `pwd`, OR when using a zsh terminal that runs the `powerlevel10k` theme
- regression: using neogit with external prompt for SSH freezes neovim HOT 4
- Opening the diff to a commit results in an error HOT 1
- regression in `:Neogit cwd=<cwd>` HOT 5
- Override palette in config HOT 1
- Status - Mapping of `o` is broken now HOT 1
- `use_default_keymaps = false` does not do anything HOT 1
- Setting a hotkey to `false` errors out at startup
- Neogit fails to start when an untracked file name is just a number
- Some neogit buffers break `statuscolumn` HOT 1
- Can't handle `typechange`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neogit.