DEV Community

01yym
01yym

Posted on

sudo apt install gh

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-authentication-to-github

sudo apt install gh
gh auth login

git config --global user.email "haha@gmail.com"
git config --global user.name "haha"

git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/haha/seo.git
git push -u origin main


echo "# dataanalysis" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/haha/dataanalysis.git
git push -u origin main

or push an existing repository from the command line
git remote add origin https://github.com/haha/dataanalysis.git
git branch -M main
git push -u origin main

Top comments (0)