Tig: Is there a plan for supporting `git push` operation?

Created on 4 Sep 2013  路  7Comments  路  Source: jonas/tig

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.

Most helpful comment

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.

All 7 comments

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 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.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

proski picture proski  路  3Comments

julien-lecomte picture julien-lecomte  路  4Comments

djromero picture djromero  路  8Comments

dlee picture dlee  路  6Comments

brechtm picture brechtm  路  3Comments