2017年3月21日 星期二

[git] undo commit

Add follow script into .gitconfig

[alias] 
    undo-commit = reset --soft HEAD^

When you want to undo the git command. Just type git undo-commit will undo the commit.

Reference:

0 意見:

張貼留言