Skip to content

Instantly share code, notes, and snippets.

@bluerabbit
Created February 28, 2013 00:44
Show Gist options
  • Select an option

  • Save bluerabbit/5053253 to your computer and use it in GitHub Desktop.

Select an option

Save bluerabbit/5053253 to your computer and use it in GitHub Desktop.
git-nowの使い方

install

brew install --zsh-completion git-now

step 1

% git init
% touch git-now.txt
% git add .
% git commit -m "initial commit"

step 2

% echo 1 >> git-now.txt
% git now
% echo 2 >> git-now.txt
% git now

step 3

% git now rebase
pick 3b3c0e2 [from now] 2013/02/28 09:24:49
pick 446f3b5 [from now] 2013/02/28 09:25:13
e 3b3c0e2 [from now] 2013/02/28 09:24:49
f 446f3b5 [from now] 2013/02/28 09:25:13

step 4

% git commit --amend -m "edit git-now.txt"
% git rebase --continue
@bluerabbit
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment