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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:01:21+00:00 2026-05-17T16:01:21+00:00

Repo: mergetest $pwd /gitvobs/mergetest/apple $git status On branch br1 Changed but not updated: (use

  • 0

Repo: mergetest

$pwd

/gitvobs/mergetest/apple

$git status

On branch br1

Changed but not updated:

(use "git add …" to update what will be committed)

(use "git checkout — …" to discard changes in working directory)

   **modified:   inside**

$git checkout inside

error: pathspec ‘inside’ did not match any file(s) known to git.

$git checkout apple/inside works perfect

So every-time, do i need to specify the full path of a file to unstage changes when am within a sub-directory?

This is not the case with add (i can add file using ‘git add file-name’ anywhere)

Is this the way GIT behaves or is this changed in other versions of GIT?

Am using git version 1.6.6

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-05-17T16:01:22+00:00Added an answer on May 17, 2026 at 4:01 pm

    On git version 1.7.1, I can use git checkout inside to revert the file. Here’s the commit which introduced the feature, if you’re curious.

    Edit: Actually, it works in git version 1.5.6.5 as well. So I’m not sure what this means.

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

Sidebar

Related Questions

Sometimes I clone git repo not for a development - but just for the
in a git-svn repo, git status doesn't show the usual # On branch master
In my current repo I have the following output: $ git branch -a *
Just cloned a git repo which has (besides the master branch) a lot of
We have a Git repo setup where it is extremely helpful to check-in not
I created this repo: https://github.com/meltzerj/Dreamstill that appears on my profile but not on the
I'm cloning this repo: https://github.com/freeformz/sinatra-jruby-heroku.git to try and use JRuby/Sinatra on Heroku's Cedar stack.
I've created repo, with standard commands git init git add . git remote add
I have a git repo, and a revision code I want it to get
In my git repo which is tracking a svn repo I have made a

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.