General tips and tricks - termcap/cybersecurity GitHub Wiki

Git

To merge the commits into one single commit before raising a merge request

git rebase -i HEAD~24 #This will meld the last 23 commits into the 24th commit

git push --force --set-upstream origin feature-branch

Reference video: https://www.youtube.com/watch?v=DLadleLj0ic