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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:14:02+00:00 2026-05-27T20:14:02+00:00

Consider a project management app that uses git at backend. The new versions are

  • 0

Consider a project management app that uses git at backend.

The new versions are always created using git add . followed by git commit.

For evaluation purposes,I want a way to get old version of a project stored in it,in such a way that entire directory contents are reverted to the specified commit.Also,after the evaluation,the contents must be reverted back to the latest version.

How can this be accomplished?

Extra info(might not be necessary):It is a web app for storing academic projects that runs on php,on a remote server,and accessed over a network.

  • 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-27T20:14:03+00:00Added an answer on May 27, 2026 at 8:14 pm

    This is one of the very basic features of git: git checkout.

    $ git checkout branch_or_tag_name
    

    changes your working directory match that branch or tag.

    $ git checkout commit_hash
    

    makes your current directory reflect the state of your repository when that commit happened. (Careful if you do this, you’ll be in “detached head” mode – you shouldn’t modify files in that state.)

    You can also simply create a branch specifically for this “evaluation” and check it out in one operation:

    $ git checkout -b evaluation commit_hash
    

    When you’re done, just checkout the branch you were previously one and the working directory will be updated.

    $ git checkout master # or whatever your main branch is.
    

    (And possibly git branch -d evaluation if you don’t need that anymore.)

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

Sidebar

Related Questions

Consider the following: I have a .NET 3.5 project that uses a .NET 1.1
Consider: List<String> someList = new ArrayList<>(); // add "monkey", "donkey", "skeleton key" to someList
Consider a Visual Studio 2010 project whose requirement is to model the data using
Consider an ASP.NET MVC 1.0 project using the Areas convention as described on this
Consider the following scenario: Someone has a project on Github that might be updated
I'm about to embark on a new Document Management System/Knowledge-base system using ASP.Net and
trying to build an ad hoc distribution with Xcode 4. Consider that my project.xcodeproj
Consider the following code (it is based on a default EMPTY MVC3 project created
I have what I'd consider a standard .NET MVC3 Repository pattern project that I've
Consider the scenario of upgrading an ASP.NET MVC project. This question is around up-converting

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.