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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:39:03+00:00 2026-06-18T01:39:03+00:00

For my project I keep an online repository on github and local repositories on

  • 0

For my project I keep an online repository on github and local repositories on two computers (say A, B) where I write code and run tests and also on three other machines (say, C, D, E) where I just run tests.

Now, it happened a few times that there are conflicts whenever I want to just download updated code on C, D, E and doing just git pull origin $someBranch won’t work, probably due to some small modifications that I did on the local source code just for testing purposes and which I don’t want to keep.

What should I do in this case? Should I always do git clone $URLofMyRepository or are there less aggressive ways?

  • 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-18T01:39:04+00:00Added an answer on June 18, 2026 at 1:39 am

    You can remove the changes to your branch if you do not want to keep them using:

    git checkout .
    

    This should remove all unsaved changes to your working directory, allowing you to perform a pull.

    git pull origin $someBranch
    

    If you want to keep the changes in your branch try stashing them, then running the pull command.

    git stash
    

    Assuming no other stashes have occurred these changes can be applied at a later time by performing:

    git stash apply
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a django project I keep on github. It worked perfectly fine on
In our project, we have a plenty of unit tests. They help to keep
As a hobby project to keep myself out of trouble, I'd like to build
While working on an Xcode project i keep getting the spinning wheel while switching
My builds keep failing with the following error Project : error PRJ0002 : Error
I have a situation in my project where I have to keep using a
I have a project that requires some configuration files. I want to keep the
I'm trying to recompile a project I've been working on and I keep getting
I am trying to build a project on Linux via Makefile. I keep getting
Trying to generate JavaDocs for the Android lint-cli project on Mac 10.7 Keep getting

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.