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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:42:41+00:00 2026-06-11T08:42:41+00:00

Warning: git novice here. I have downloaded the source code of an open-source project

  • 0

Warning: git novice here.

I have downloaded the source code of an open-source project (ffmpeg, to be exact) using git (git clone). I checked out an older revision in order to do test it (git checkout [version number]), and git told me that I’m now in a detached HEAD state. Now I want to resync again to the latest remote revision, but I don’t know how.

I don’t want to create any local branches. I haven’t made any local changes that I want to keep. I don’t want to do any of those fancy things that git can do when you are a serious developer (which I’m not). I just want my local source tree to be the same than the latest remote version.

git checkout . doesn’t do anything. git pull tells me that I’m not currently on a branch. Short of erasing everything and do a git clone again, what else can I do?

  • 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-11T08:42:42+00:00Added an answer on June 11, 2026 at 8:42 am

    I don’t want to create any local branches.

    Sure you do. You just want a “local tracking branch”, which is a branch that tracks a remote branch, making it easy to stay up to date with the project.

    Try this:

    git checkout master ;# you should have a 'master' branch by default
    git pull ;# to get the newest changes from the remote repo
    

    Issue git pull on that branch anytime you want to stay up to date with the remote. You can see how local tracking branches are configured using git remote show origin, and I strongly recommend spending a little time in the git-scm docs even if you don’t want to do fancy git stuff. A little background knowledge will help you navigate that source tree nearly any way you want.

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

Sidebar

Related Questions

I got Calculator source code from google's android.git.kernel.org and successfully build the project without
The Git Ropo for full code I have defined: /app/model/Todo: Ext.define('Test.model.Todo', { extend: 'Ext.data.Model',
Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in /home/happy/public_html/source/imap/fet_mail_from_email_add.php on line 7 can't connect:
Warning: This is inherited legacy code that was initially put together in the early
I seem to have run into a case where git doesn't notice inline changes
I have an issue: while git push ing I've got an error: Fetching remote
we have a Git remote repository (in a way, our central repository) on the
This question is based on the thread . I have the following Git-prompt at
Sometimes, I create local branches in git, and I'd like to get a warning
I just ran a git add -A on my first git project. I got

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.