committing changes to github code example
Example 1: committing on github
# make sure to do: git config --global user.name "username"
# git config --global user.email "[email protected]"
git init -b main
git add .
git commit -m "message"
git push origin main
Example 2: how to commit a branch in git
git commit -m "added my github name"
Example 3: how to commit changes in git command
git commit -a