Git

Git / GitHub Notes

see git config

git config --list

initialize

git init

Check status and see what branch you are on

git status

Rename the branch using the move option (-m):

git branch -m <new-name>

add files to staging

git add .

you can also add just a file

git add file.txt

push local commit to remote (Github)

git remote -v
git remote add origin https://github.com/tipnmog/tipnmogblog.git
git branch -M main
git push -u origin main

Steps to Remove the Origin Remote