committing 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: git commit and push command

git:    git add .    git commit -m "$m"    git push -u origin master

Example 3: github commit

// ready the changes for commit
git add .

// commit your changes with a message
git commit -m "Your message to refernce your commit"

Example 4: github commit

git commit -m "Your Messege Here"