I am newbie in using SVN so this is my question.
I don't know how SVN really work but I want make new repository like here this were explained:
http://files.zend.com/help/Mobile/Zend-Studio/Advanced/content/configuring_an_svn_connection.htm
I don't know what should be in URL
I paste there path like:
file://F:/wamp/newSVNProject
newSVNProject - is empty folder where I want to make new SVN project
I was installed SVN in Zend Studio in "welcome page" but I don't know what to do next, how create my own SVN repository with the project? sorry for my english ;-)
I use wamp and I work local
You cannot create your own SVN repository only through the Zend PHP Studio.
What you've installed is the IDE connection to SVN and NOT a SVN server.
You will need to connect to an external (to your IDE/environment) SVN server.
There is a perspective in Eclipse that is used for adding/managing added repositories - it is called "Repository Explorer". You can add a Shortcut to if from the upper right corner of out IDE's window.
If you want to install an Subversion (SVN) Repository you will need to do totally different configurations. The easyest way is to provide the versioned content through a web server - like Apache.
You can read all about it in the Subversion Book.
Related
I work for a shop that has standardized on TFS. We have one project that was developed by a subcontractor in php. You can't even load this thing in Visual Studio.
I managed to create a repo for the project, but I need to find out how to check the project in. Is there some other app (like tortoiseSVN) that I can use to check stuff in and out without Visual Studio? Or is there some way to get VS to load the project and check it in and out without creating a .sln, .csproj, or any other unwanted files?
Actually, it's totally possible to use Visual Studio to do this.
You can use the web interface to create a repo...
You can't edit the php in Visual Studio of course, but you can open the Source Control Explorer to check the project into the repo.
You need to remember to go in Visual Studio to check files out before you edit them, and then check them back in when you're done.
It's clunky, but not as clunky as buying a $200 per year setup we're only going to use a few days out of the year. We're a Microsoft shop after all.
I'm assuming you're using TFVC and not Git for version control.
If you don't have Visual Studio at all, you can install Team Explorer. If you already have Visual Studio installed, that's fine too.
The tool you're looking for is tf.exe -- it's the command line tool for interacting with TFVC.
You can also consider using a Git repo instead of TFVC for this -- although TFVC can be used for any type of source code, it has a reputation of being exclusively for Visual Studio-based projects. Git is likely to be more familiar to folks who have never worked with TFS or TFVC and have not spent much time using Visual Studio.
You can use PhpStorm, then install the TFS Integrartion plugin for it, then you can manage the php projects in PhpStorm same as manage projects in VS.
Just follow the steps mentioned in below screenshot to configure the PhpStorm:
More information you can refer to Using TFS Integration.
Using TortoiseSVN, I created a "repository" folder in htdocs directory (Apache web server and PHP). Opened repo-browser Included some files into it. The local URL is:
http://127.0.0.1:8080/repository/project
Now I wanna checkout files into a working folder. When I try to provide URL http://127.0.0.1:8080/repository/project, it doesn't work ?
This is the first time I am using URL (http://).
Previously i have been using file:// successfully. Also have used VisualSVN (for http://) but doing it with Tortoise directly, seems a better idea for me.
Creating repository inside web-space does not convert this repository automagically to be http-served by Apache
Single Apache instance can be ordinary web-server and backend for SVN|WebDAV at the same time
You must to read SVN Book and configure your Apache in order to have http-repositories
Try this link dude Work with Visual SVN Server & Tortoise SVN. This is step by step procedure how to install Visual SVN Server + Tortoise SVN Client Application and how to configure them.
For the Tortoise Url in my case I'm using https://fullcomputername/svn/NameofYourRepository or could find it in your Visual SVN Server Manager. The link that I provide to you will guide you how to find it. :)
It's Highly Recommended to use TortoiseSVN with VisualSVN because they work well together see VisualSVN Testimonials here.
I am a new git user, using the built in NetBeans support on Windows 7.
I have made some changes to my project files on a development computer, and committed them to a remote repo. I would now like to use git (NetBeans) to push my project to a bare repo that I have created on my live web server.
Is this possible using NetBeans commands or do I need to go to the command line.
Not sure about using it in Netbeans, but the Netbeans git docs appear to suggest you have to choose a repository to push to.
I am new to PHP and Zend Framework 2.
I am currently going through the ZF2 tutorial. I've run the commands:
php composer.phar self-update
php composer.phar install
Then opened up the latest Netbeans version. However, when asked for the zh.sh file, I couldn't find it anywhere in the zf2-tutorial folder. Is this file something that we need to create or is it expected to exist by default in the ZF2?
It'd be great if someone could point me to the right direction.
As other have hinted, NetBeans has not caught up to ZF2 yet (ZF has only been out for a handful of weeks).
As of right now, ZF2 has no command-line tooling (ie: zf.sh). Instead, you're encouraged to use the Skeleton Application to get things started.
While NetBeans doesn't have any specific ZF2 support, it's still a great IDE to use while developing ZF2 projects.
Just skip the ZF-specific stuff. Grab the Skeleton App, and create a new NetBeans project ("from existing sources"), and start hacking.
In all honesty, I can't remember ever using any of the ZF-specific stuff in netbeans. The framework is just a bunch of PHP files, and NetBeans works well without any framework-specific knowledge.
I don't know the content of zf.sh, but I was using this zf.bat in windows as it should be zf.sh in linux so's. This way I got from netbeans my zend core in the creation project phase ( with no errors):
git clone git://github.com/zendframework/ZendSkeletonApplication.git
cd ZendSkeletonApplication
php composer.phar self-update
php composer.phar install
With Zend included in php.ini, and COMPOSER_PROCESS_TIMEOUT=5000 set in the same file (also set max_execution_time=5000). This is because it didn't work for me to put it in command line orders.
I code all by myself, and I have 1 website . but i dont ever use subversion or github. Question is:
How to develop on souce code of my website server and update it when develop complete.
In this case , should use github or subversion.
Truthly , i read and using github then try to create repository but anyone can watch mycode . I dont want that.
I want 1 guide easy for very begin about this.
You can use Git locally. So no need for Github. There is a video serie on www.tekpub.com about Git.
SVN and GIT are two completely different types of code repository patterns. If you using GIT you don't need a central server and can create a repository locally on your machine. I recommend you get familiar with this website just to get a basic overview of what a DVCS is and how it can affect the way you code.
HgInit
The good news is that you aren't familiar with any VCS (I assume) and that means you won't get mixed up when trying to learn GIT coming from SVN.
Assuming you already know the basics of how to commit/push/etc with git, which your answer suggests you do, the problem is that your repo is set to be public and not private. You can change this on the repo's admin page, assuming your github account has enough private repos left (The lowest account level that supports this is USD$7/month iirc). There are other git hosts which you can use for free that provide private repos.
As Roger said, you can use Git locally and do not need a server for that.
For SVN you need a central repository server, that usually does not correspond to your live webserver.
You will need a running Apache server and install SVN as an additional module for it. Once you have a subversion server running, you can then add repositories to it, normally one repository per project.
Usually you would have a local subversion installation on a development server in your local network or even (as you work alone) on your local machine, using a distinct host/port configuration for SVN, e.g. you could use localhost:80 for your development of the live website, and localhost:9999 for your SVN installation. There are several guides for installing SVN on Windows, Linux and MacOS found via google.
Both version control systems require some initial work to get it, but I personally prefer Git over SVN. Check out the Git guide on stackoverflow or the SVN book.
Personally, I find SVN easier to learn and install than GIT (but I guess that depends on person ;) and OS - I'm on windows unfortunately)
That's why I choose some free personal host for that. I tried BeanStalk and XP-Dev. The first one, is cleaner and much more user-friendly... and offer GIT or SVn ! But you got only 1 personal project available for free.
The second one is ugly but quite performant, 2 personal projects but only with SVN for free.