This repository has been archived by the owner. It is now read-only.
Permalink
Switch branches/tags
v1.5.3-rc4.mingw.2 v1.5.3-rc4.mingw.1 msysGit-v0.6 msysGit-1.6.1-preview20090211 msysGit-1.5.4-rc0-preview20071217 WinGit-1.5.3-preview20071010 WinGit-0.2-alpha WinGit-0.1-alpha GitMe-0.4.2 Git-preview20080301 Git-preview20080221-with-git-svn Git-preview20080220-with-git-svn Git-preview20080219-with-git-svn Git-1.9.5-preview20150319 Git-1.9.5-preview20141217 Git-1.9.4-preview20140929 Git-1.9.4-preview20140815 Git-1.9.4-preview20140611 Git-1.9.2-preview20140411 Git-1.9.0-preview20140217 Git-1.8.5.2-preview20131230 Git-1.8.4-preview20130916 Git-1.8.3-preview20130601 Git-1.8.1.2-preview20130201 Git-1.8.0-preview20121022 Git-1.7.11-preview20120710 Git-1.7.11-preview20120704 Git-1.7.11-preview20120620 Git-1.7.10-preview20120409 Git-1.7.9-preview20120201 Git-1.7.8-preview20111206 Git-1.7.7.1-preview20111027 Git-1.7.7-preview20111014 Git-1.7.7-preview20111012 Git-1.7.6-preview20110720 Git-1.7.6-preview20110708 Git-1.7.4-preview20110204 Git-1.7.3.2-preview20101025 Git-1.7.3.1-preview20101002 Git-1.7.2.3-preview20100911 Git-1.7.1-preview20100612 Git-1.7.0.2-preview20100407.msysGit-netinstall Git-1.7.0.2-preview20100407-2.msysGit-netinstall Git-1.7.0.2-preview20100309 Git-1.7.0.2-preview20100309.msysGit-installers Git-1.6.5.1 Git-1.6.5.1-preview20100112-with-cheetah Git-1.6.4-preview20090730 Git-1.6.4-preview20090729 Git-1.6.3.2-preview20090608 Git-1.6.3.2-preview20090607 Git-1.6.3-preview20090507 Git-1.6.3-preview20090507-2 Git-1.6.2.2-preview20090408 Git-1.6.2.1-preview20090322 Git-1.6.2-preview20090308 Git-1.6.1-preview20081227 Git-1.6.0.2-preview20080923 Git-1.6.0.2-preview20080921 Git-1.5.6.1-preview20080701 Git-1.5.6-preview20080622 Git-1.5.5-preview20080413 Git-1.5.4-rc5-preview20080128 Git-1.5.4-rc3-preview20080113 Git-1.5.4-rc2-preview20071228 Git-1.5.4-rc0-preview20071217 Git-1.5.4-preview20080202 Git-1.5.3.6-preview20071126 Git-1.5.3.5-preview20071114 Git-1.5.3-preview20071027 Git-1.5.3-preview20071019
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 708 Bytes
Set fso = CreateObject("Scripting.FileSystemObject")
Set shell = CreateObject("WScript.Shell")
Const TemporaryFolder = 2
linkfile = fso.BuildPath(fso.GetSpecialFolder(TemporaryFolder), "Git Bash.lnk")
gitdir = fso.GetParentFolderName(WScript.ScriptFullName)
' Dynamically create a shortcut with the current directory as the working directory.
Set link = shell.CreateShortcut(linkfile)
link.TargetPath = fso.BuildPath(gitdir, "bin\sh.exe")
link.Arguments = "--login -i"
link.IconLocation = fso.BuildPath(gitdir, "etc\git.ico")
If WScript.Arguments.Length > 0 Then link.WorkingDirectory = WScript.Arguments(0)
link.Save
Set app = CreateObject("Shell.Application")
app.ShellExecute linkfile