#Adding an existing project to GitHub using the command line
Simple steps to add existing project to Github.
In Terminal, change the current working directory to your local project.
##2. Initialize the local directory as a Git repository.
git init
| // Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
| // See also: http://www.paulund.co.uk/change-url-of-git-repository | |
| $ cd $HOME/Code/repo-directory | |
| $ git remote rename origin bitbucket | |
| $ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
| $ git push origin master | |
| $ git remote rm bitbucket |
| (function ($) { | |
| $.fn.formToArray = function () { | |
| var data = $(this).serializeArray(); | |
| $("form input:checkbox").each(function () { | |
| data.push({ name: this.name, value: this.checked }); | |
| }); | |
| return data; | |
| }; | |
| })(jQuery); |