$ git init
# $ rm -rf .git; ls -a
$ git --help
$ git add .
$ git commit -m "Inital commit."
$ git fetch --all
$ git merge --ff-only origin/master
$ git pull [<remote repo>]
$ git push
To push the current branch and set the remote as upstream, use
$ git push --set-upstream origin main
$ git stash
$ git stash pop
$ git stash list
$ git checkout -b new_feature
$ git checkout main
For more info refer here
$ git checkout main
$ git merge emergency-fix
$ git checkout experiment
$ git rebase master
$ git cherry-pick <commit_SHA>
// this is a new line // other line