git init
git add .
git commit -m "some comment"
git branch -M main
git remote add origin https://github.repository.address.git
git push -u origin main
$ git --version
$ git init
$ git config --global user.name 'Hyuk'
$ git config --global user.email 'hyukho83@gmail.com'
$ git status
$ git add <file>
$ git restore --stage <file>
$ git rm --cached <file>
$ git commit
$ git branch -M main
$ git push
$ git pull
$ git clone repository-url
$ git config --list
$ git remote -v
$ git remote set-url origin https://github.com/user/new-git-repository.git
when you see git command error below, it will help fix the error
git error: failed to push some refs to 'master'
git pull --rebase origin master
git push origin master
git reset
git reset --hard <commit>
git reset --hard origin/master
$ git rm --cached first_project/lib/home.dart
$ git commit -m "Fixed untracked files"
$ git push -u origin main
$ git blame <file>
$ git blame -L 1,10 <file>
$ git blame -l <file>
$ git log