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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:51:50+00:00 2026-06-01T15:51:50+00:00

We just moved over to Git from SVN. In trying to clean up some

  • 0

We just moved over to Git from SVN. In trying to clean up some unused files. I saved before deleting one folder that I thought we weren’t using. I did not push this to the origin. I realized we are using one of the files in the folder after all, and would like to revert to my last commit. This is on my own branch from the master. I can’t find a way to do that in Xcode. Am I missing something? Thanks.

  • 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-01T15:51:51+00:00Added an answer on June 1, 2026 at 3:51 pm

    You can see here for rsanchezsaez answer: Xcode 4 git integration

    Xcode 4 won’t let you to checkout older commits within the user interface, unless you created a new branch for that commit. Nevertheless, you can do it from the command line. For that, use the following command from your project folder

    $ git log –format=oneline

    to get the hash code of the commit you want to go to, and then use:

    $ git checkout desired-hash-code

    to checkout that particular version. Once there, you can make tests, changes, and possibly create a new branch. If you do a commit without creating a new branch, you will lose the newer commits in your current branch. If you want to go back to the newest commit after having performed some tests on your older version use:

    $ git checkout master

    note again that this won’t work if you do a new commit from your old code version without creating a new branch, because newer commits in the current branch get dereferenced.

    Also, please consider searching SO before asking. Many questions had already been asked and answered.

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

Sidebar

Related Questions

I am a bit new to git. I just moved over from SVN and
I've just moved over from my own MVC framework to a community supported one
I just moved from Visual Studio 2008 to Visual Studio 2010 (final) and noticed one major
Just moved a site over to a new server and we started getting some
Just moved this Joomla 1.6 install over from iPower to Network Solutions. Moved a
I just moved a project from localhost over to my remote server, and noticed
I moved all my files into a folder ignored by git (an over-zealous .gitignore
I'm tracking a project that has recently moved from svn to git. I've got
I just moved over to the Visual Basic team here at work. What is
Just moved to subversion...from visual studio. I love it already! Can someone briefly explain

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.