Skip to content

Allekslar/Create-a-new-private-repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Create a new private repository on the command line

Setting up a new Git Private Repo on the command line

Create a new repository on the command line

touch README.md
git init
git add README.md
git config  user.email YOUR_EMAIL
git config  user.name YOUR_USERNAME
git commit -m "first commit"
curl -u YOUR_USERNAME:YOUR_TOKEN https://api.github.com/user/repos -d '{"name":<reponame>, "private":"true"}'
git remote add origin https://YOUR_USERNAME:[email protected]/YOUR_USERNAME/<reponame>.git
git push -u origin master

Push an existing repository from the command line

git remote add origin https://YOUR_USERNAME:[email protected]/YOUR_USERNAME/<reponame>.git
git push

About

Create a new private repository on the command line

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published