Last active
October 3, 2015 17:20
-
-
Save adini121/b766f9a65b258452d8da to your computer and use it in GitHub Desktop.
Create a new repository locally AND add remote too (e.g. create a remote repository at github from local one)
This file contains 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
#! /bin/bash | |
# Description | |
# Author: Adi | |
# ChangeLog: | |
# Date: 29.08.15 | |
repo=$1 | |
git init | |
git add . | |
git commit -m 'First commit' | |
curl -u 'adini121' https://api.github.com/user/repos -d '{"name":"'$repo'"}' | |
git remote add origin [email protected]:adini121/'$repo'.git | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment