Reset all commits and back to actual state
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
3. git pull origin master
4. Create new feature branch
5. git checkout feature/NEWFEATUREBRANCH
6. git status
7. git reset HEAD *
8. git commit -m ""Add GPO update task" roles/infra/windows-updates/tasks/main.yml
9. git push feature/NEWFEATUREBRANCH
Last updated
Was this helpful?