コンテンツにスキップ

GitHub Quick setup

Quick setup — if you’ve done this kind of thing before

HTTPS
https://github.com/USERNAME/REPOSITORY_NAME.git

Get started by creating a new file or uploading an existing file. We recommend every repository include a README, LICENSE, and .gitignore.

…or create a new repository on the command line

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

…or push an existing repository from the command line

HTTPS
git remote add origin https://github.com/USERNAME/REPOSITORY_NAME.git
git branch -M main
git push -u origin main