Revert "Revert "adding rebase,reset,head to manual""

This reverts commit 3db46c30f81e520a1c180fd3b54f8e5959193afe.