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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:54:11+00:00 2026-06-09T00:54:11+00:00

I download the last version from the server with git fetch as far as

  • 0

I download the last version from the server with

git fetch

as far as I understood now the repository is updated.

I have two questions :

  1. Now I worked on file that was changed from the server and I want to do the merge ?
    when Do I need to do the merge ? Do I need to do it after the git fetech or when I do the add files ? could you please exaplain me what should be the statmentes for the merge process ?

  2. If I want to update my workign directory and I don’t have any merge How I can do it ?
    I tried to do it with :

    git checkout -f "mybranch"
    git rebase
    git checkout "mybranch"

is it ok ? Do I have different way ?

  • 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-09T00:54:13+00:00Added an answer on June 9, 2026 at 12:54 am

    I don’t merge in this case. If I have outstanding changes, I do

    git stash
    git checkout master #if I'm not on master
    git fetch origin
    git rebase origin/master
    git checkout whateverbranh #if I was not on master
    git rebase master #if I was not on master
    git stash pop
    

    I think a lot of people don’t do this; I like it because it keeps my history line linear.

    You can’t always avoid a merge. In this case, if files have changed on the server, and my commits have changed those same files, I have to resolve the conflicts during the rebase.

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

Sidebar

Related Questions

I have Flash game at my site. There is a button Download full version
I currently have rails 3.0.3 and am trying to download and use version 3.0.1.
Clicking through to the download-page if see that the last version of the download
I'm installing the last version of MediainfoDLL on Fedora 8/9 64bits ( http://mediainfo.sourceforge.net/es/Download/Fedora ).
I am writing a script using ftp.exe to download files from an FTP server,
I recently updated my sdk version from 18 to 20. I tried to create
I download an image from a url to an ec2 instance(wget), process it with
I Download Jquery datepicker from http://jqueryui.com/demos/datepicker/ and use it,know I want to my calndar's
I download FFMPEG from http://www.videohelp.com/tools/ffmpeg#download and saved it in my c:\program files\ffmpeg (Windows Vista).
I download cakephp 2.1 from the official website. When I copied files to 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.