Created
January 30, 2023 19:24
-
-
Save rybkinn/ce0f75476fffc00ecc160a39104e0408 to your computer and use it in GitHub Desktop.
Create remote repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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