add local repo to github

علی ذوالفقار
1400/08/06 22:35:12 (269)
with GitHub cli:
git init -b main
gh repo create project-name
git pull --set-upstream origin main
git add . && git commit -m "initial commit" && git push

with gitbash :
$ git init -b main
$ git add .
$ git commit -m "First commit"
$ git remote add origin
$ git remote -v
$ git push origin main
Back