User Tools

Site Tools


code:github:repository_setup

This is an old revision of the document!


Quick setup — if you’ve done this kind of thing before

https://github.com/MiroslavGlamuzina/__PROJECT_NAME__.git

…or create a new repository on the command line

echo "# asdfmiro.glamuzina-gmail.com" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/MiroslavGlamuzina/__PROJECT_NAME__.git
git push -u origin master

…or push an existing repository from the command line

git remote add origin https://github.com/MiroslavGlamuzina/__PROJECT_NAME__.git
git push -u origin master
 
 
## SSH VERSION 
 
git remote set-url origin git@github.com:MiroslavGlamuzina/REPO_NAME.git
git remote add origin git@github.com:MiroslavGlamuzina/REPO_NAME.git
git push -u origin master

…or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project. See:

https://github.com/MiroslavGlamuzina/__PROJECT_NAME__/import
code/github/repository_setup.1604350484.txt.gz · Last modified: by ltsover9000