git config --global user.name "your name"
git config --global user.email "[email protected]"
git clone https://host/path/project.git
cd note
git switch -c main
touch README.md
git add README.md
git commit -m "add README"
git push -u origin main
cd existing_folder
git init --initial-branch=main
git remote add origin https://host/path/project.git
git add .
git commit -m "Initial commit"
git push -u origin main
cd existing_repo
git remote rename origin old-origin
git remote add origin https://host/path/project.git
git push -u origin --all
git push -u origin --tags
git fsck --full --no-reflogs --unreachable --lost-found | grep commit | cut -d\ -f3 | xargs -n 1 git log -n 1 --date=format-local:'%Y-%m-%d %H:%M:%S' --pretty=reference > .git/lost-found.txt
git checkout -b <your-branch> <sha>