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

  • Home
  • SEARCH
  • 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 6854799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:40:43+00:00 2026-05-27T01:40:43+00:00

I have been using git on my windows box to track a project I

  • 0

I have been using git on my windows box to track a project I am working on alone. I had to copy the files to a linux box. I made substantial edits to the source on the linux box to get it working w/some components also on the linux box. How can I “properly” push the newly edited source on the linux box to the tree on github now?

I tried copying the root of the project on the linux box to my windows machine and did a “git add *” on the windows box at the root, but “git status” makes it look like all the files would be seen as “new”, which I do not want. How can I do this without git thinking they’re all new files, and instead modified files, as if I had performed all the edits on the windows machine as in the past.

I would accept any answer that gets it done this one time (script, series of git commands, etc).

Also, is the correct way to do this in the future to checkout first on the remote box and then perform edits?

Note: I haven’t committed anything to the tree yet. Just the aforementioned copy to the windows machine and then a “git add *” on the windows machine.

  • 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-27T01:40:44+00:00Added an answer on May 27, 2026 at 1:40 am

    If I understood right, you have the same git repo on both machines, but they’re independend. If it is so, you can use patch to share changes, see here http://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git

    Another way might be, if there is a network connection between the machines, and access to the “other” git repository might be possible, you can just pull those changes. See http://book.git-scm.com/3_distributed_workflows.html

    If none applies, please provide more information, why this won’t work.

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

Sidebar

Related Questions

I have been using git to keep two copies of my project in sync,
I'm using git-svn to work with an SVN repository. My working copies have been
I have been using git and github with my small team of developers for
I have been using Git for my version control for a while now, but
I have been using git a lot recently and I quite like the concept
Some Background I have been using Git for a while now. The projects that
I have Ruby and GIT installed on my windows box. To run GIT commands
I project I have been working on has now been split between me and
I am using git / github and by accident I have been committing into
I've been using Git on Linux for about a year, and everything works fine.

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.