If there any unwanted commits that present in pushed branch it's needed to do
1.Back to the master branch, because it's very possible that unwanted commits there
2. git reset --soft HEAD~11 to reset last 11 commits
git reset --soft HEAD~11
3. git pull origin master
git pull origin master
4. Create new feature branch
5. git checkout feature/NEWFEATUREBRANCH
git checkout feature/NEWFEATUREBRANCH
6. git status
git status
7. git reset HEAD *
git reset HEAD *
8. git commit -m ""Add GPO update task" roles/infra/windows-updates/tasks/main.yml
git commit -m ""Add GPO update task" roles/infra/windows-updates/tasks/main.yml
9. git push feature/NEWFEATUREBRANCH
git push feature/NEWFEATUREBRANCH
Last updated 5 years ago