…or create a new repository on the command line
echo "# <reponame>" >> README.md
git init
gitmyname
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:Lysak/<reponame>.git
git push -u origin main # -f
========================
========================
========================
========================
========================
========================
echo "# .idea" >> README.md
git init
gitmyname
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:Lysak/.idea.git
git push -u origin main -f
…or push an existing repository from the command line
git remote add origin [email protected]:Lysak/<reponame>.git
git branch -M main
git push -u origin main # -f
…or replace existing repository from the command line
git remote set-url origin [email protected]:Lysak/<reponame>.git
git remote -v
alias gitmyname='git config user.email "[email protected]" ; git config user.name "Dmytrii Lysak"'