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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:06:03+00:00 2026-05-15T08:06:03+00:00

I use git for my source management, I have a local repository on my

  • 0

I use git for my source management, I have a local repository on my mac and a remote repository at github. They are BOTH suppose to be the same exact thing. I work by myself and I am the only programmer working on my web applications.. I can’t get git to act right – with svn I could simply commit the code to the repository and BAM! The remote repository magically had the exact same files in it… Not in git, no, it just can’t be that simple. I MUST read an entire damn book just to use the stupid thing.

So the question is, what is your development cycle like? I just want to have the exact same code at github as I have in my local git repository. Here’s how I code:

I write code…add, edit, delete, modify files…. So I do this at the command line:

git add .  # this is *suppose* to add all files that are not part of the repository

git commit -m 'I commited this because...'

git push # send it to github

Now, after several weeks and hundreds of commits, github as slightly different code that I have in my local repository.

Please help me get this fixed before I trade git & open source for windows & svn or jump out of a window.

I’m sorry about the tone here, I’m just really upset that I keep finding inconsistencies in my source repositories. It’s not a good feeling. I envision the one day where I lose my laptop and then github has old code in it. This just seems stupid.

Oh, one more thing… I don’t want to have to always do git rm /some/long/path/to/file.txt when I remove a file. Is there an easier way? This is absolutely stupid and too time consuming.

Thank you for your help.

Br

  • 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-05-15T08:06:04+00:00Added an answer on May 15, 2026 at 8:06 am

    Github has a nice page here detailing on how to create, commit and push : http://help.github.com/creating-a-repo/ .

    and particularly this:

    git
    (source: skitch.com)

    You probably want git push origin master (you need to define origin before of course, read the information above) instead of just git push.

    Another important thing to know is the git commit -a command, which simply commits all changed files etc., no need to git add them separately.

    You might also want to check the output of git status to see if there are any suspicious things there which could be the cause of github not being an exact copy.

    And FYI, svn is open source as well 🙂

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

Sidebar

Related Questions

I want to use git as a local repository against a remote SVN repository.
I want to build up a git server which provider source management on the
We are going to use Git where I work, and we have some in
I have the task of migrating my team & source from git to Perforce,
How often should you use git-gc? The manual page simply says: Users are encouraged
I frequently use git stash and git stash pop to save and restore changes
For personal projects I use Git for SCM, but at work we use TFS.
I want to use git to allow me to work on several features in
I'd like to use git to record all the changes to a file. Is
I'm thinking of asking my students to use git for pair programming. Because student

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.