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 8128197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:48:04+00:00 2026-06-06T07:48:04+00:00

I created a new repository on github. I selected one of the options that

  • 0
  • I created a new repository on github.
  • I selected one of the options that added a README.md.
  • I then cd into the project on my hard drive.
  • I ran git init: Initialized empty Git repository in /Users/myusername/github/myproject/.git/
  • I ran “git add .” and then “git commit -m ‘project files'”, which responded with this:

    [master (root-commit) ca52fe0] project files
     981 files changed, 257939 insertions(+), 0 deletions(-)
     create mode 100644 index.php
     create mode 100644 license.txt
     create mode 100644 readme.html
     create mode 100644 wp-activate.php
     ...
    
  • I then ran “git remote add origin https://github.com/myusername/myproject.git“
  • I then ran “git push origin master”
  • I then ran “git status” which said nothing to commit

But I look at repo and my “my project files” commit is not there. So then I ran git pull and got this:

You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.

and then git push and checked again and still my commits are not on github repo. The only time I can see the commit is when I run “git log”:

MacBook-myproject myusername$ git log
commit ca52fe090e6dbf1b6aa6ee51c3283efbe7549904
Author: User <myemailaddress>
Date:   Sat Jun 23 19:22:05 2012 -0400
project files

I followed github directions best that I could. What am I doing wrong?

  • 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-06T07:48:08+00:00Added an answer on June 6, 2026 at 7:48 am

    After your Github repository has been created (i.e. you can view it on Github), then you should already have:

    1. Local repository set up:

    git init
    

    2. README file created and added to the repository:

    touch README.md
    git add README.md 
    git commit -m 'first commit'
    

    3. A remote called origin linked to your repository:

    git remote add origin https://github.com/username/repo.git
    

    4. An initial push, which copied your local README to your Github repository:

    git push -u origin master
    

    If you can view your repository on Github, then it has been successfully created. In this case it looks like you may have edited your README file on Github using the online editing tools, which caused your remote and local branches to diverge.

    Before you can push your local changes to Github, you need to fetch or pull your remote changes, merge the changes locally (merging is automatic with pull), and then push to the remote.

    See Pro Git: Fetching and Pulling from Your Remotes

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

Sidebar

Related Questions

I created a github new repository first in github webpage and then I opened
I had created project. New File or Project=>git Repository Clone=> clone url git://github.com/negativ/eiskaltdcpp.git=>The process
Through the github web interface I created a new repository. I forgot to chose
I'm using one file from a git repository off of github in a project
I'm new to Git and Github. I created a repository but am unable to
I created a new repository in Github to share my vimfiles. But there's some
I am very new to GitHub. I have created a GitHub repository and pushed
I created a new repository called DirectorySocket, and from my project directory called DirectorySocket
These days when I create a new repository on GitHub on the setup page
I a xampp setup for php. I have created a new repository at D:/xampp/htdocs/cart

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.