After you have created your application, place your code in a git repository. You have options on where to host your code, but the simplest is hosting it on GitHub. This page describes how to host your code on GitHub.
To host your code on GitHub
- Create a GitHub account.
-
After logging in, on the left navigation pane, click 'New'. (this will create new repository.)
-
Give your project a name, description, choose if the repository is 'Public' or 'Private', and click Create Repository.
Note: You have the option to initialize the repository with options such as adding README.md, .gitignore and a license. -
Follow the GitHub instructions to connect your local git repository with your GitHub repository.
Note: If your code is in a Subversion (SVN) repository, Mercurial or TFVC, see GitHub Source code migration tools.After you have completed the GitHub, your application code is stored remotely on GitHub. Whenever you make any local changes in your git repository and want to have it pushed to your remote GitHub repository, type
git push
while inside of your local repository; git will push your newly committed code to GitHub.
Important! Make sure to put your application root directory at the root level of your git repository. Don’t put it in a subdirectory. (The application root directory is the one that contains the app, config, and public directories.)
More information
For more information | See... |
---|---|
Setting up your local machine |
Set up your local environment. |
hosting your code on GitHub | this Spanish translation of the Host your Code on GitHub tutorial, courtesy of Mario Alberto Chavez Cardenas of Decisiones Inteligentes. |
If you have feedback or questions about this page, add a comment below. If you need help, submit a ticket with Engine Yard Support.
Comments
Article is closed for comments.