checkout to your current working feature/branch git checkout -b feature/branch checkout new tmp branch from feature/branch git checkout -b tmp delete feature/branch for merging commit logs git branch -D feature/branch checkout to the base branch