How to make git generate short commands on interactive git rebase
up vote
2
down vote
favorite
How to configure git so on interactive rebase it generates
p 3abc67f AAA
p 2b9c0ac BBB
instead of
pick 3abc67f AAA
pick 2b9c0ac BBB
git
add a comment |
up vote
2
down vote
favorite
How to configure git so on interactive rebase it generates
p 3abc67f AAA
p 2b9c0ac BBB
instead of
pick 3abc67f AAA
pick 2b9c0ac BBB
git
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
How to configure git so on interactive rebase it generates
p 3abc67f AAA
p 2b9c0ac BBB
instead of
pick 3abc67f AAA
pick 2b9c0ac BBB
git
How to configure git so on interactive rebase it generates
p 3abc67f AAA
p 2b9c0ac BBB
instead of
pick 3abc67f AAA
pick 2b9c0ac BBB
git
git
asked Apr 6 '17 at 10:40
SwietNoiko
112
112
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
4
down vote
There is a config option called rebase.abbreviateCommands
, which does what you want. This config option was introduced in v2.16.0. In shell the command is:
git config rebase.abbreviateCommands true
man git-config says:
If set to true, git rebase will use abbreviated command names in the
todo list resulting in something like this:
p deadbee The oneline of the commit
p fa1afe1 The oneline of the next commit
Tested, works great!
– mbarkhau
Feb 22 at 14:52
add a comment |
up vote
1
down vote
Closest I've gotten is this:
echo "let @i = 'gg0/# Rebase^Mkkvvlvgg^Vlllx0'" >> ~/.vimrc
Then once in vim I do @i
.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
There is a config option called rebase.abbreviateCommands
, which does what you want. This config option was introduced in v2.16.0. In shell the command is:
git config rebase.abbreviateCommands true
man git-config says:
If set to true, git rebase will use abbreviated command names in the
todo list resulting in something like this:
p deadbee The oneline of the commit
p fa1afe1 The oneline of the next commit
Tested, works great!
– mbarkhau
Feb 22 at 14:52
add a comment |
up vote
4
down vote
There is a config option called rebase.abbreviateCommands
, which does what you want. This config option was introduced in v2.16.0. In shell the command is:
git config rebase.abbreviateCommands true
man git-config says:
If set to true, git rebase will use abbreviated command names in the
todo list resulting in something like this:
p deadbee The oneline of the commit
p fa1afe1 The oneline of the next commit
Tested, works great!
– mbarkhau
Feb 22 at 14:52
add a comment |
up vote
4
down vote
up vote
4
down vote
There is a config option called rebase.abbreviateCommands
, which does what you want. This config option was introduced in v2.16.0. In shell the command is:
git config rebase.abbreviateCommands true
man git-config says:
If set to true, git rebase will use abbreviated command names in the
todo list resulting in something like this:
p deadbee The oneline of the commit
p fa1afe1 The oneline of the next commit
There is a config option called rebase.abbreviateCommands
, which does what you want. This config option was introduced in v2.16.0. In shell the command is:
git config rebase.abbreviateCommands true
man git-config says:
If set to true, git rebase will use abbreviated command names in the
todo list resulting in something like this:
p deadbee The oneline of the commit
p fa1afe1 The oneline of the next commit
edited Nov 23 at 15:07
Allan Deamon
32717
32717
answered Feb 22 at 14:39
Ikke
6023918
6023918
Tested, works great!
– mbarkhau
Feb 22 at 14:52
add a comment |
Tested, works great!
– mbarkhau
Feb 22 at 14:52
Tested, works great!
– mbarkhau
Feb 22 at 14:52
Tested, works great!
– mbarkhau
Feb 22 at 14:52
add a comment |
up vote
1
down vote
Closest I've gotten is this:
echo "let @i = 'gg0/# Rebase^Mkkvvlvgg^Vlllx0'" >> ~/.vimrc
Then once in vim I do @i
.
add a comment |
up vote
1
down vote
Closest I've gotten is this:
echo "let @i = 'gg0/# Rebase^Mkkvvlvgg^Vlllx0'" >> ~/.vimrc
Then once in vim I do @i
.
add a comment |
up vote
1
down vote
up vote
1
down vote
Closest I've gotten is this:
echo "let @i = 'gg0/# Rebase^Mkkvvlvgg^Vlllx0'" >> ~/.vimrc
Then once in vim I do @i
.
Closest I've gotten is this:
echo "let @i = 'gg0/# Rebase^Mkkvvlvgg^Vlllx0'" >> ~/.vimrc
Then once in vim I do @i
.
answered Feb 22 at 14:13
mbarkhau
615
615
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1196058%2fhow-to-make-git-generate-short-commands-on-interactive-git-rebase%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown