Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7973503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:07:23+00:00 2026-06-04T08:07:23+00:00

I want to put my project to the github, but I always failed. I

  • 0

I want to put my project to the github, but I always failed.
I use following steps to do it:

  1. create a new repository on github,
  2. In my disk, I create a folder LocalGit and initial it. Then I use
    git pull git@github.com:myAccount/myProject.git
  3. I add the project directory TestPro to the LocalGit, and then using:
    git add .
    git commit -m "inital"
  4. Finally, I try to push it to the github, using :
    git push -u origin master

After that, I open the github in safari, and my project exists.
But the problem is the folder TestPro can’t be open, and there is nothing under it.

Could anyone tell me how to add existing project to the github?
I have read the instructions on github, but I still can’t find the solution and where am I wrong.

The local project I refer is a local git repository. Does it matter? should I checkout it first?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:07:25+00:00Added an answer on June 4, 2026 at 8:07 am

    After created you project on github, you have :

    1. To clone you project in local, used git clone git@github.com:myAccoun/myProject.git
    2. touch test;git add test;git commit -a -m “first commit”
    3. after you right : git push origin master

    git pull is git fetch and git merge. Used it after to refresh your repository.
    .git is automatically manage by git, so it’s no necessary to add to track.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to put a Git project on GitHub but it contains certain
For http://github.com/collectiveidea/delayed_job Let's say I just start a brand new Rails project and want
I want to put the user password check to never expire. When I create
I'm using Dev-C++ IDE for C programming. I want to put my project in
I want to put code that i generate automatically and new classes in different
Background: We use github for our project and I work on my own fork
I'd like to modify this PictureBox Array Project. i want to put a reset
I want to put a configuration file in my Maven project. Looking at the
I'm investigating a personal Grails project and want to put together a domain model
I created an Eclipse project and now I want to put it on my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.