Skip to content

Instantly share code, notes, and snippets.

@rybkinn
Created January 30, 2023 19:24
Show Gist options
  • Select an option

  • Save rybkinn/ce0f75476fffc00ecc160a39104e0408 to your computer and use it in GitHub Desktop.

Select an option

Save rybkinn/ce0f75476fffc00ecc160a39104e0408 to your computer and use it in GitHub Desktop.
Create remote repository
# Need create 'personal access token' you github account.
(settings -> developer settings -> personal access token -> generate new token)
REPO_NAME - your repository name
TOKEN - personal access token (look line2)
mkdir REPO_NAME
cd REPO_NAME
git init
echo "This repo was created remotely" >> README.md
git add .
git commit -m "first commit"
git remote add origin git@github.com:USER/REPO_NAME.git
curl -u 'USER:TOKEN' https://api.github.com/user/repos -d '{"name":"REPO_NAME"}'
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment