Basically, I use tig instead of git everyday.
Except when I want to push my codes to remote. I have to open another tmux pane to git push. Since tig already supports git commit or git cherry-pick, why not support git push?
I think lots of tig user would be very happy about this.
Push might be supported in the future through a view for managing remotes. However, the main reason for not supporting git-push out-of-the-box is that 1) we are running out of good keys to bind to and 2) a couple of users have raised concerns about keybinding that 'modify' the git repository, as they see tig more as a 'viewer'.
You can add a keybinding yourself by putting the following in ~/.tigrc:
bind P !git push origin
would also love for this feature to be implemented!
For anyone else Googling, I found the ~/.tigrc binding above didn't work, need to specify a view as follows:
bind status P !git push origin
I agree some key mapping should ideally be default.
I like the sound of having a remotes view with push binding! :)
:+1: My dream is to put the cursor over remotes/origin/huge-large-name, click C and have it do git checkout -b huge-large-name.
~
bind status P !git push origin
~
always asks for password, it is weird, since I already set 24 hours as value of credential.helper 'cache --timeout 86400' in ~/.gitconfig, and in terminal, git push won't ask for passwd evey time, but in tig, it does.
bind status P !git push originalways asks for password, it is weird, since I already set 24 hours as value of
credential.helper 'cache --timeout 86400'in ~/.gitconfig, and in terminal,git pushwon't ask for passwd evey time, but in tig, it does.
Is there anyone knowing how to fix this, this is really annoying, and I come here again.
I'll raise a new issue page for this problem.
Most helpful comment
For anyone else Googling, I found the ~/.tigrc binding above didn't work, need to specify a view as follows:
I agree some key mapping should ideally be default.