Is it possible to create a new project and push that new project to GitHub rather than having to open your browser, log into Github, and create a new project for you to push to via the GitHub site?
Asked
Active
Viewed 841 times
-1
-
yes please close/delete, dup, thanks – PositiveGuy Dec 14 '14 at 06:02
4 Answers
2
Technically you can. But you need to use the API's that are provided by Github
There is also a wrapper written in python which has all of those implemented: Check it out here

Alexander Ejbekov
- 5,594
- 1
- 26
- 26
0
You can't. Github is a wrapper to git and it does not allow you to do that. The reason for that is that in github repos have github rights which can't be manage via git.
Here is the same question: How to create a new repo at Github using git bash?
An alternative might be to use github API: https://developer.github.com/v3/repos/#create

Community
- 1
- 1

Benoît Latinier
- 2,062
- 2
- 24
- 36
0
You can add it to your .bash_profile:
echo 'mkrepo () { curl -u "<username>" https://api.github.com/user/repos -d "{\"name\":\"$@\"}" ; }' >> ~/.bash_profile
source ~/.bash_profile
Then enter mkrepo <new-repo-name>
an it'll create it. (<username>
is your username on github and <new-repo-name>
is what you want to call the new repository.

woodchuck
- 1
- 2