svn export and deployment on WINDOWS - windows

How to deploy the code from SVN to WINDOWS envronment?
I am looking to execute the following steps:
'svn export' (only changed files after certain revisons) from WiNDOWS command line.
Deploy the changed files on WINDOWS environment.
Thanks.

You need to install a command line SVN client on Windows first. TortoiseSVN's recent versions reportedly include one. Then you need to use the same commands you did under linux. I think you actually mean 'svn co' not 'svn export' which assumes you already have checked out copies on your local file system.

Related

I can't "go get" a dependency from github

I made a golang app on my machine that uses cron. On my machine, I
"go get github.com/robfig/cron"
to download and install dependency then in my app I
"import cron "github.com/rk/go-cron""
the app works fine and runs the way I want. I then upload it to the server where it's supposed to run and try to "go get github.com/robfig/cron" as I did on my machine, but then it gave me this
I downloaded and installed github but still the same result. I'm guessing the problem is with github on my server machine
I am new to golang and andy kind of help would be greatly appreciated. Thanks.
What you need to install is git. It is the version control system (VCS) used by GitHub.
The native GitHub application does not provide the command line tools used by Go.
Git can be found and downloaded at http://git-scm.com/downloads
Once installed, make sure you have the path to the Git cmd folder in your %PATH% environment variable.
You can check this by running the command: echo %PATH%
On a Windows installation, you might find it located here:
C:\Program Files (x86)\Git\cmd

Vim fugitive plugin does not recognise git archive on Windows

I installed vim fugitive via pathogen plugin. Helptags created the tags for fugitive.
In the next step I set up a brand new git repo with git init, jumped into that folder, created a README.
In gVim I then run :Gstatus but the split window that opens is empty. :Gcommit tells me that the command git is spelled wrong.
I installed Git-1.7.9-preview20120201.exe for Windows 7 64Bit from here:
http://code.google.com/p/msysgit/downloads/list
Can anybody bring me on the right track?
Regards
It seems gitcommand is not in the PATH environment variable. What happens if you invoke git from Windows command prompt?
msysgit installer provides you 3 options:
Use Git Bash only: PATH won't be edited.
Run Git from Windows Command Prompt: it will add Git to your PATH.
Run Git and included Unix tools from the Windows Command Prompt: Git and several Unix tools will be added to your PATH.
So, you can re-install git with one of the two last options or add manually C:\Program Files\Git\cmd to your PATH.

Mercurial not working after TortoiseHg update

I recently updated TortoiseHg to 2.0.3 (with Mercurial 1.8.2). After updating, Mercurial no longer works via the command line (Windows 7 x64), but does work via the TortoiseHg GUI. Trying to use any Hg commands via the command line results in the error message 'hg' is not recognized as an internal or external command, operable program or batch file.'
I'm guessing I need to make some change to a setting in TortoiseHg or Windows 7 so that Windows will recognize hg commands, but I'm not sure what that change is. I am very new to using Hg - I installed it a few months ago (thus the need for an update), but only recently started using it.
I fixed this by removing the "/" at the end of the Path:
From
"C:\Program Files\TortoiseHg\"
to
"C:\Program Files\TortoiseHg"
TortoiseHg v2.X.X no longer uses the hg command, instead try thg.
Your install path might be different, but typically thg.CMD exists at:
C:/Program Files/TortoiseHg/bin/
If you've installed Mercurial independent of TortoiseHg you may still have access to the hg executable, but most people just install TortoiseHg and take the associated copy of Mercurial, in which case you would need to use the thg commands.
I had to remove the leading quotation mark - the PATH variable contained:
...;"C:\Program Files\TortoiseHg
and I changed it to
...;C:\Program Files\TortoiseHg
to make it work with Red-Gate SQL Source control.

Command-line svn for Windows?

Is there a command-line based version of svn for Windows? I know I can get TortoiseSVN, but that just doesn't work for me.
TortoiseSVN contains a console svn client, but by default the corresponding option is not enabled during installation.
The svn.exe executable is not standalone and it depends on some other files1 in the distribution but this should not be a problem in most cases.
Once installed you might need to add the folder containing svn.exe to the system PATH as described here so that it is available in your console. To check if it was already added by the installer open a new console and type echo %PATH%. Use set on its own to see all environmental variables.
1 for the svn* executables in TortoiseSVN 1.14.1, the following files are required on the PATH:
intl3_tsvn.dll
libaprutil_tsvn.dll
libapr_tsvn.dll
libsasl.dll
libsvn_tsvn.dll
The subversion client itself is available on Windows. See here for certified binaries from CollabNet.
CollabNet Subversion Command-Line Client v1.6.9 (for Windows)
This installer only includes the command-line client and an auto-update component.
Even though I can't understand it's possible not to love Tortoise! :)
Note:
The above link is for newer products - you can find version 1.11.1 through 1.7.19 at Older Subversion Releases
I've used sliksvn and it works great for me
cygwin is another option. It has a port of svn.
You can get SVN command-line tools with TortoiseSVN 1.7 or later or get a 6.5mb standalone package from VisualSVN.
Starting with TortoiseSVN 1.7, its installer provides you with an option to install the command-line tools.
It also makes sense to check the Apache Subversion "Binary Packages" page. xD
VisualSVN for Windows has a command-line-only executable (as well Visual Studio plugins).
See https://www.visualsvn.com/downloads/
It is completely portable, so no installation is necessary.
As Damian noted here Command line subversion client for Windows Vista 64bits TortoiseSVN has command line tools that are unchecked by default during installation.
You can use Apache Subversion. It is owner of subversion . You can download from here . After install it, you have to restart pc to use svn from command line.
If you have Windows 10 you can use Bash on Ubuntu on Windows to install subversion.
Install MSYS2, it has svn in its repository (besides lots of other Unix goodies). MSYS2 installs without Windows Admin rights.
$ pacman -S svn
The tools can be used from cmd, too:
C:\>C:\msys64\usr\bin\svn.exe co http://somehost/somerepo/

git without bash/cygwin

I'm on a vista laptop, trying out git for the first time.
I installed the msysgit version, and it installed a "git bash" shortcut on the desktop. When I run it, it seems to run in a cygwin kind of box, where C:\ is /c/
Is it safe to use git from the windows command line where /c/ is C:\? does that create any conflict with the way git expects the pathes to be like?
What about, if I init from the bash/cygwin console, then commit from the windows console? Does that create any trouble?
Note: Keep in mind that git does not track where the repository is at -- just references. In other words you can cleanly move an entire git directory (.git + working tree) and it still works fine.
It should work in either case assuming your environment variables allow you to run git from the windows command line.
Both point to the same actual directories (although referenced differently), and use the same executable to modify the repository.
When you install MSYS Git, it will give you 3 options related to system paths. Which one you choose will determine how you can use it. It sounds like you want the 3rd option, "Run Git and included tools from the windows command prompt". This will put all of the git-related binaries in the system path, allowing you to use git from a normal command prompt. Be aware that it also overrides a few built-in windows tools, as the warning in the installer says.
After installing msysgit, you should be able to right click on an empty folder and see options "Git GUI here" and "Git BASH here". If you click Git GUI here it will open a GUI. Have fun!

Resources