Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I connect a locally build rails app to my github repository? #4

Open
rowalth opened this issue Nov 3, 2015 · 1 comment
Open

Comments

@rowalth
Copy link

rowalth commented Nov 3, 2015

No description provided.

@rowalth rowalth changed the title How do I connect a locally build rails app to the github repository? How do I connect a locally build rails app to my github repository? Nov 3, 2015
@haslinger
Copy link
Member

Open a terminal and cd into your application.
Create an empty git repository

git init 

Connect your local repository to the Github repository.

git remote add origin [email protected]:#USERNAME#/#REPONAME#.git

or

git remote add origin [email protected]:#ORGANISATIONNAME#/#REPONAME#.git

You can find this path to your Github repo in the Github web interface of your Github repo. It is called SSH clone URL there.

If you have your origin repo somewhere else, you could use a different repo name, e.g. github

git remote add github [email protected]:#USERNAME#/#REPONAME#.git

Check, what you have done with

git remote -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants