例えば2つ前のコミットに対して行う場合。
> git rebase -i HEAD~2
> git reset HEAD~2 -- path/to/file
> git commit --amend
> git stash save
> git rebase --continue
> git stash pop
Gitは使い始めて1年以上経つがいまいち使いこなせている感じがしない。
Go to list of users who liked
More than 5 years have passed since last update.
例えば2つ前のコミットに対して行う場合。
> git rebase -i HEAD~2
> git reset HEAD~2 -- path/to/file
> git commit --amend
> git stash save
> git rebase --continue
> git stash pop
Gitは使い始めて1年以上経つがいまいち使いこなせている感じがしない。
Register as a new user and use Qiita more conveniently
Go to list of users who liked