Push local branch to remote repo

By Hunter Becton on January 19, 2023

git add .

git commit -m “Your message”

git push origin feature-branch

How to use

You'll use this code snippet a lot to push changes to your remote repository, like GitHub. In the above snippet, replace your message with your commit message. Also, replace feature-branch with the name of the branch your want to push to the remote repo.