-
-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use gitui with remote repositories #90
Comments
Hi @alistaircarscadden interfacing with remote repos like |
That's fair. It all depends what you expect from a git UI. In my case I imagine using a tool like this like I'd have used SourceTree before I started using command-line only. But, it's the difference between Ctrl+Cing out of the application and typing in git push origin develop or just typing [P] [Enter], or whatever it'd end up being. As far as improving git pull with a UI vs. the command-line, I think the example I gave with having a local branch and a remote branch with different names is something that new users or users who generally use UIs would appreciate instead of having to learn the git syntax. I'm learning Rust, closest thing I knew previously was C++, so perhaps one day I'll implement some of these suggestions. :) |
Ha it would awesome if you wanna get your hands dirty yourself. After all open source depends on exactly that :) However I totally agree in a full feature UI for git this functionality makes sense! It is definitely not a "not gonna happen in gitui over my dead body" but more a "not gonna have time for this pretty soon based on cost/benefit" |
https://github.com/TimB87/gitui/commit/cc158b643f270bdc0a397425dda22dc17db91d41 It's not pretty or might not even be the desired way to go, but this worked for me. |
@TimB87 thanks for sharing this. |
@extrawurst Thanks so much for the input, glad that I missed git2-rs, because I felt really cheap just invoking the system binary 😄 |
Hi, new to this project (not even installed yet but really interested by it) and I was expcting indeed that gitui was a "full-blown" git client and I see with this issue it is not (yet) the case :) That's probably something you already thought of (and maybe rejected), but maybe a temporary solution would be to allow to enter "raw" git command from within gitui ? I know this should then be a separate issue but this issue made me think of it here (I don't want to derail it further though) |
From my perspective, however that would be implemented it'd end up being the same number of keystrokes and the same level of command memorization that the original git CLI requires, and wouldn't push this application towards it's goal of being easier to use/more visual/less man page reading than the original. It's not a bad idea, and I considered it myself, but I think it's best to not implement that and wait on a real implementation of each feature. |
I agree it doesn't save keystroke, but it allows you to not quit the application. And designing and implementing correctly all the features take time, this could allow to release some "steam" |
Hey @GMouron thanks for chiming in, hope by now you downloaded it 😛 The short version is: Of course your proposed solution would be a workaround but I must agree with @alistaircarscadden here and ask what the great benefit is of that. after all I am fine with switching between shell and gui, because I hope this clears up my reasoning a little bit. Let me know what you think. |
I can totally understand that you wouldn't want to implement a possibility to enter raw git commands in gitui because it doesn't totally fit the goals you have for the tool, no problem with that. I would argue though, that if you would do, it would allow us to win a couple of keystrokes 😁 and thus a few extra ms 😜. But I won't try further to change your mind, because I can understand that you consider it doesn't fit what you had in mind. |
In gitui if ctrl+i was the command shortcut: In gitui currently:
2 keystrokes per command (a couple ms a couple times a day) vs. a couple hours. |
I would like to suggest that one should be able to disable any remote commands in the config or even via compiletime option. Some people might not want to use these feature by accident, so it would be nice to deny them in some way or another. |
@matthiasbeyer |
No, I mean I have fat fingers and am sometimes doing things in tig that I don't want to do. Pushing to a remote might be non-reversible and thus I rather do it by typing |
@matthiasbeyer thanks for chiming in on this. All destructive operations are currently already behind a confirmation dialog, this would be no different IMHO |
#265 adds first rudimentary push functionailty |
I tried #266 and it works great over here, tested on a private gitlab repo 😃 |
this is superseded with #319 - we are closing in on a 0.11 release adding push/(soon pull) 🥳 |
Is your feature request related to a problem? Please describe.
I would like to push and pull from remote branches.
Describe the solution you'd like
Potentially a tab beside Status and Log called Remote, the functions would be pull, push, fetch, and anything to do with remote branches.
The functionality to push a local branch of some name to a remote branch of some other name like
git push origin localdev:feature_remote
should be included. I'm not a git poweruser, so I don't require much from remotes, I'm sure other people would have better ideas.Describe alternatives you've considered
Ctrl+C
to quit gitui,git push
,gitui
The text was updated successfully, but these errors were encountered: