← Back to list

Add an existing project to GitHub

Github project Adding

Kumuthini Ashokkumar · 2022-10-03 08:01 · 16 claps · 1.0 min read
#git #git-push #github-push #add-project-to-git
Open on Medium ↗
Wiki topics: 🔓 · Open Source

Add an existing project to GitHub

github project

Hello Readers,

Add an existing project to GitHub steps

To push a new project to an existing GitHub repository, follow these steps:

  1. Create a GitHub repository for the existing project.
  2. Copy the GitHub URL for the new repo to the clipboard.
  3. Perform a git init command in the root folder of the existing project.
  4. Add all of the existing project’s files to the Git index and then commit.
  5. Add the GitHub repo as a remote reference for the existing project.
  6. Perform a git push operation with the -u and -f switches.
  7. Verify that the existing project’s files have been pushed to GitHub.

GitHub push tutorial commands

  • **git init**
  • **git add .**
  • **git commit -m "Add existing project files to Git"**
  • **git remote add originhttps://github.com/example.git**
  • **git push -u -f origin master**

— — — — — — — — — — — — — — — — — — — — — — —

Give your response and stay connected for more :-)

There are more to come :-)

I hope you liked the article.

Thanks for the reading!

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —


메타데이터
post_id
57ec0081a119
slug
add-an-existing-project-to-github-57ec0081a119
url
https://medium.com/@kumuthini.program/add-an-existing-project-to-github-57ec0081a119
canonical_url
https://medium.com/@kumuthini.program/add-an-existing-project-to-github-57ec0081a119
author_url
https://medium.com/@kumuthini.program
status
ok
fetched_at
2026-07-09 00:50:33