Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I see the repository path of a local copy?

Tags:

svn

This is probably close to trivial, but I can't find it. How can I see where in the repository a local copy refers to? Say, I have a workspace checked out some time ago, I want to see if it was checked out from a branch or the trunk.

like image 633
davka Avatar asked Apr 07 '10 08:04

davka


People also ask

How do I find my Git repository path?

You can find the list of all local git repositories by navigating from “Git > Local Repositories.” Based on the previously configured folder for the local repos, Visual Studio will change the context for the local repositories. Then, you will have all the local repos on your fingertip.

Where are local repository stored?

The Local Repository is the . git/ subdirectory inside the Working Directory. The Index is a conceptual place that also physically resides in the . git/ subdirectory.

How do I find my svn repository path?

You need to find the virtual host in your apache configuration and look for a <Location> section that matches your url path and look for a SVNPath or SVNParentPath config line. This will tell you the location of your subversion repository.


2 Answers

Use

svn info 
like image 111
wRAR Avatar answered Sep 25 '22 08:09

wRAR


For repository root :

Linux : svn info | grep 'Repository Root' | awk '{print $NF}'

Windows : svn info | findstr /C:"Repository Root: "

like image 38
Aniket Thakur Avatar answered Sep 22 '22 08:09

Aniket Thakur