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

Add existing project from your working directory to Github #65

Open
heron2014 opened this issue Apr 16, 2016 · 1 comment
Open

Add existing project from your working directory to Github #65

heron2014 opened this issue Apr 16, 2016 · 1 comment
Assignees
Labels

Comments

@heron2014
Copy link
Member

heron2014 commented Apr 16, 2016

Steps to add existing project from your machine into Github:

  • Create a repo in Github (you can add README)
  • in your project directory :
    • git init
    • git add .
    • git commit -m "Initial commit"
    • git remote add origin project url
    • git pull origin master (if you have created README in Github)
    • git push origin master
@heron2014 heron2014 self-assigned this Apr 16, 2016
@heron2014
Copy link
Member Author

heron2014 commented Apr 23, 2016

If you cloned the repo from someone's repo on Github (for example some boilerplate), you made some changes and you wish to push it to your Github.
Steps:

  • change your remote repo:
    • git remote add 'some name' url of your newly created repo in Github
    • git pull 'some name' master (if you created repo with README)
    • git push 'some name' master

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

No branches or pull requests

1 participant