Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-25-2013, 05:07 PM   #1
Registered: Aug 2009
Posts: 349

Rep: Reputation: 16
SVN add a file to repoistory

There is a host named hostA at and I log into this host and I vi files and when I am done I type in svn commit -m "explanation"
<file changed> and after wards an email goes out to evarybody telling them what file I changed and how, and the boss who knows that I am working (HURRAAAAYYY!!!!).

Then I log into hostC (10.1.300.80) and go to the directory were the file I changed is, and then I type in 'svn up <file change> and then I see a version number that matches the one on hostA.

Problem is I am on hostB (10.1.300.81) and I have a file that I changed (on hostB ) and my boss wants this file 'version controled' (booooooo!!!) . Like the next time I need to edit the file on hostB I have to do it the same way that I would edit something on hostC .

When I do an ls -ltra on the hostB in the directory where the file I need to change is I do not see a ".svn"

When I do an 'svn up' /production/scr/ on hostB - I get
Skipped '/production/scr/'

When I try an 'svn add" /production/scr/ on hostB - I get
svn: '/production/fo/scr' is not a working copy

how do I add the file from hostB to the repoistory on HostA?
Old 10-27-2013, 07:52 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
It sounds like you don't have a working copy of the repository on hostB. If that is correct, the svn docs here describe how to do that. Once you have a working copy on hostB, you can copy your file to the required directory and check it in.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
share a bash shell with u--add svn user xiutuo Linux - Server 3 10-26-2011 11:34 PM
SVN add folder question HarryBoy Programming 1 02-01-2011 05:03 PM
How to Add projects to SVN keeping revision/ history? your_shadow03 Linux - Server 1 06-10-2009 09:21 AM
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 05:31 AM
Not able to add two different projects in SVN (Linux server) deepaklinux Linux - Software 1 02-14-2008 02:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration