git commit --allow-empty -m "trigger build" # Commit no new changes to trigger build
You should never amend public commits (i.e. already pushed to a public reop).
# --no-edit: makes an amendment without changing the commit message
git add *FILE_TO_ADD* && git commit --amend --no-edit
git push -u origin master # -u is the same as --set-upstream
Moves all your changes to new-branch
git switch -c "new-branch" # If you forget to checkout on a new branch before making commits:
git remote -v # Check git remote
git remote remove origin # Remove remote branch with origin alias