Git<\/a>. GitHub extends this functionality with its own custom features such as access control, several collaboration features such as bug tracking, feature requests, task management, continuous integration, and wikis for every project.<\/p>\n\n\n\nAdding an Existing Project to GitHub using the Command Line<\/h2>\n\n\n\n The instructions below assume that you have already installed Git on your system.<\/p>\n\n\n\n
Follow these steps to add an existing project to Github.<\/p>\n\n\n\n
Step 1: Create a new repository on GitHub.<\/strong><\/p>\n\n\n\nSign in to your GitHub account. Click on the plus (+) icon \/ New repository on the top right of the page and follow the on-screen instructions.<\/p>\n\n\n\n
Step 2: Initialize the local directory as a Git repository<\/strong><\/p>\n\n\n\nFrom within the local directory, in your terminal on Linux systems or cmd on windows type the following command.<\/p>\n\n\n\n
$ git init<\/code><\/pre>\n\n\n\nStep 3: Add the files to your new local repository. This stages them for the first commit.<\/strong><\/p>\n\n\n\n$ git add .<\/code><\/pre>\n\n\n\nor:<\/p>\n\n\n\n
$ git add --all<\/code><\/pre>\n\n\n\nStep 4: Commit the files that you’ve staged in your local repository.<\/strong><\/p>\n\n\n\n$ git commit -m "initializd repo"<\/code><\/pre>\n\n\n\nStep 5: Link your project with your GitHub repository.<\/strong><\/p>\n\n\n\nCopy the remote repository URL field from your GitHub repository, which can be found under the Code tab.<\/p>\n\n\n\n
In Terminal, add the URL for the remote repository where your local repository will be pushed.<\/p>\n\n\n\n
$ git remote add origin git@github.com:<usernam>\/<repository>.git<\/code><\/pre>\n\n\n\nNote: Use the HTTPS URL version if you intend to use a username and password to push to the remote repository. To use public and private key pairs you may want to use the ssh version URL.<\/p>\n\n\n\n
Step 6: Sets the new remote:<\/strong><\/p>\n\n\n\n$ git remote -v<\/code><\/pre>\n\n\n\nStep 7: Push the changes in your local repository to GitHub.<\/strong><\/p>\n\n\n\n$ git push origin master<\/code><\/pre>\n\n\n\nThat’s it. you will now be able to use GitHub as source control<\/a> for your existing project.<\/p>\n","protected":false},"excerpt":{"rendered":"GitHub is an online service that provides Internet hosting for software development and version control using Git. To add an existing project to GitHub accounts would be something you would…<\/p>\n","protected":false},"author":1,"featured_media":11319,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,16,18],"tags":[784,424,433,471,544,545,783,591],"yoast_head":"\n
How to add Existing Project to GitHub Account<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n