Git commit to new branch Posted on 06.05.202506.05.2025 by GhitaB $ git checkout -b new_branch $ git status $ git add . $ git commit -m “Message” $ git push –set-upstream origin new_branch (or $ git push and copy paste the suggestion) Tags: docs, git, GitHub, solutions Category: Docs