I moved to a new laptop and copied all my source code. (going from win XP to Windows 7). I installed tortoise SVN on the new laptop. However, when I go to change a source code file and commit it, I don't see the green checkmarks. So, the new laptop SVN client doesn't know what my old laptop knows. Does anyone know how to get the SVN client information from my old laptop so I can continue working as before? (The only other thing I can figure out is to make completely new repositories and IMPORT, but I don't want to do that...)
The SVN client contains a hidden folder structure beneath your local copy, and that contains the meta data used to communicate with the repository. I suspect you copied over the "visible" files, but not the hidden ones.
Related
I'm working in a environment where files are at Windows side (because I like to work with phpStorm from that side) and Linux side (because I've a Virtual Machine running CentOS 6.6 and there is where LAMP environment is). The phpStorm project is a remote files one. This are the steps I followed to create the project:
Clone the repo at Windows directory
Copy the files to Linux using WinSCP
Create the remote project using phpStorm and this step copy the whole files from Linux to Windows.
I'm using SmartGit to manage my repos and do GIT/SVN tasks (the easy way). But surprise, files hasn't been changed but SmartGit says it does, but waits? How is that possible if the only steps I did was the one described above? Even if you try to open a file SmartGit will said that the content is the same? So, how to avoid this behavior? How to not to commit the whole files? If I made a commit already, how do I dismiss it? Is not the first time I'm running this problem but before repos was mine and I can lose every but now is a serious project and I take care for not damage others work. Any advice? Help? What you can do in this case?
See this pic:
There you can see what I'm talking about.
I want to be able to work across multiple workstations synchronously jumping from one to the other without having to worry about committing.
I have windows personal and work desktop and a Mac OSX laptop. At the moment, I point my project to a cloud directory and have the local install of Android Studio pointing to a gradle offline cache in another cloud directory. This keeps failing as it tells me that the path to gradle is invalid. Which I understand because gradle is referenced in different locations on different machine (considering the differing file management system in MACOSX and Windows7).
Edit: When I try to open the project, it brings up the "Import Project from Gradle" screen. To which it has the option for me to select "Use local gradle distribution" and select the Gradle home directory. I pointed it to the cache directory, and it tells me:
Cannot Save Settings
Gradle location is incorrect.
Location:C:/Users/Username/.gradle
All my research (include these answers here, and here) suggest that VCS is the way to go. However, I don't see this as a solution to my problem. I'm not looking to version control, I'm looking to transition seamlessly across workstations. Of course I will still use Version Control System for the purpose of saving a working version of my code, or sharing it with other developers, but there has to be a better way when I simply just want to keep all workstations synced.
I come from web development, and I synchronise local environment on AMPPS across multiple computers without any issue. This meant I can transition from my personal desktop, laptop, and work desktop instantly. It frustrates me if I have to remember to commit every time I move around. If I have to do this 20 times a day, and it takes about a minute to do this, that's 20 minutes that could have been spent writing a couple of functions. And what if I forget to commit, then I get to work, or home, that would be a day wasted because I won't actually have the current up to date code...
So the question remains, is there a way to instantly synchronise Android Studio projects? How do I keep all my code base (ie gradle) in sync?
Ok thanks to the comments above which pointed me in the right direction.
Android Studio create some local files that are specific to the machine that you are on. Following on this principle, to sync the "source" files (files that are specific to your application only), you must ignore all these local files. This is similar to what you would store on github. I followed the answer for this question to apply the ignore rules.
Having ignored all the "local files", when I create a new project, the source files are synchronised across all my workstations. In order to establish a local version, I need to "import" the project first. Once it has been imported, "local files" will be created for that particular machine. From then on, I can "open" the project locally.
To summarise:
Set your sync to ignore files as per .gitignore or refer to this question.
Create a project on one of your workstation and save it in the cloud.
When you are ready to work on the project for the first time on another workstation, "import" the project.
Once the project has been imported, all local files should have been created.
From then on, use the "open" option to continue working on the project.
I hope this helps somebody else, saving hours on googling.
I've created a svn repository on a linux computer. For this repository I've also created a working copy named myfirstproject. In order to get the URL of it I've typed in "svn info". The answer was
"svn://localhost/myfirstproject".
Now I want to approach this working copy from windows computer. I've tried doing it via netbeans for the first time and tortoiseSVN as well. I've tried to approach svn://my_server_domainName/myfirstproject, but it was failed.
what should I suppose to do? Is there any other URL address I need to type?
Thank you
I had an emergency change something in the file without going through committing to SVN. That is, instead of to the local computer to make changes and commit the this, I immediately changed the file on the server (for that was the reason).
Tell me, how can I download a file from a server on a computer?
If your server's space is Working Copy and your local workplace is Working Copy (and both WCs are binded to the same Repo-URL) you can commit from server & update from local
If your server isn't WC, you have more headache around syncing diverged changes
I have recently installed Tortoise SVN on Windows and have two computers, A and B. On both machines I installed TortoiseSVN and they are connected Via LAN and I have my repository saved in computer A. I want to access/checkout the repository in Computer A from Computer B, so i tried this URL in the repository to SVNcheckout from Computer B,
http://192.168.2.6/Repository
but i got a error message as,
repository moved permanently to 'http://192.168.2.6/Repository'; please relocate
tried some other URL's as well like,
http://192.168.2.6/C:/wamp/www/Repository/
http://192.168.2.6///C:/wamp/www/Repository/
file:///192.168.2.6///C:/wamp/www/Repository/
but got error messages as,
access to 'http://192.168.2.6/C:/wamp/www/Repository/'; forbidden
What am I missing ?
Got the solution myself, I didnt actually have a SVN server installed, with which i could retrieve the repository through a specific URL from other computer. I installed VisualSvn and that solved the problem..
It is able to do that on LAN.
1. Remember to share the folder you use as repository
2. On pc B, select SVN checkout..., click the browse button, locate to that shared folder.
And it's done.