Posts

Showing posts with the label Repository

How to create a GitHub Repository

Image
Creating your first GitHub Repository Prerequisite:  You have a local project ready which you wish to push to your GitHub repo and you have git installed on your machine. Open terminal and cd to your local project directory.   cd /your-local-project-directory-path/ Initialize the project directory as a Git repository . git init Open github.com in your browser and log in with your GitHub account, if you don't have an account already, create one. Click on the "New repository" button displayed on the page. This will take you to "Create a new repository" page. Enter the name you will keep for your repository in the "Repository name" text field. You can choose to initialize your repository with a README file and also add a .gitignore file, but this is optional. Click on Create repository button and your repository will be created and you will be redirected to your repository page.  Click on "Clone or download" bu...