diff --git a/Update.cmd b/Update.cmd
index 3e593ac6..66486ea8 100644
--- a/Update.cmd
+++ b/Update.cmd
@@ -1,50 +1,55 @@
 @echo off
-hg incoming "https://bitbucket.org/sas_team/sas.maps/"
-::echo %ERRORLEVEL%
-IF ERRORLEVEL 9009 goto NoHg
-IF ERRORLEVEL 255 goto CloneRepo
-IF ERRORLEVEL 2 goto err
-IF ERRORLEVEL 1 goto noupdates
-IF ERRORLEVEL 0 goto ok
-IF ERRORLEVEL -1 goto CloneRepo
+
+set maps_dir=sas.maps
+set maps_url="https://github.com/sasgis/sas.maps"
+
+git fetch --verbose %maps_url%
+
+echo %ERRORLEVEL%
+
+if ERRORLEVEL 9009 goto NoGit
+if ERRORLEVEL 128 goto CloneRepo
+if ERRORLEVEL 0 goto UpdateRepo
+if ERRORLEVEL -1 goto CloneRepo
 
 goto err
 
-:ok
-        echo ����ࠥ� ��������� �� ९������
-        hg pull "https://bitbucket.org/sas_team/sas.maps/" -u -f
-        IF ERRORLEVEL 1 goto err
-        IF NOT ERRORLEVEL 0 goto err
-	for /R /D %%d in (*.zmp) do rd /q %%d 2> nul
-        goto end
-:CloneRepo
-	rd /s /q sas.maps
-	echo ������ ���� ९������ � �ࢥ�
-	hg clone "https://bitbucket.org/sas_team/sas.maps/" sas.maps
-        IF NOT ERRORLEVEL 0 goto err
-	echo �����㥬 ����� � ९����ਥ� �� �������� � ⥪���� �����
-	move /Y sas.maps\.hg .\.hg
-        IF NOT ERRORLEVEL 0 goto errMoveHg
-	echo ����塞 �६���� ᮧ������ ��������
-	rd /s /q sas.maps
-        IF NOT ERRORLEVEL 0 goto errRemoveTemp
-	echo ������塞 䠩�� �� ��᫥���� ���ᨨ
-	hg update -c
-        goto end
-:noupdates
-        echo ��� ����� ���������
-        goto end
+:CloneRepo    
+    echo ������ ���� ९������ � �ࢥ�
+    rd /s /q %maps_dir%
+    git clone %maps_url% %maps_dir%
+    if not ERRORLEVEL 0 goto err
+    
+    echo �����㥬 ����� � ९����ਥ� �� �������� � ⥪���� �����
+    xcopy /i /s /h /e /y %maps_dir%\.git .\.git
+    if not ERRORLEVEL 0 goto ErrorCopyGit
+    
+    echo ����塞 �६���� ᮧ������ ��������
+    rd /s /q %maps_dir%
+    if not ERRORLEVEL 0 goto ErrorRemoveTemp
+    goto UpdateRepo
+ 
+:UpdateRepo
+    echo ������塞 䠩�� �� ��᫥���� ���ᨨ
+    git clean -d --force
+    git reset --hard
+    goto end
+    
 :err
-        echo �訡�� �裡 � �ࢥ஬
-        goto end
-:errMoveHg
-        echo �訡�� ��६�饭�� ����� .hg 
-        goto end
-:errRemoveTemp
-        echo �訡�� 㤠����� �६����� ����� sas.maps 
-        goto end
-:NoHg
-        echo �� ��⠭����� Mercurial
-        goto end
+    echo �訡�� �裡 � �ࢥ஬
+    goto end
+    
+:ErrorCopyGit
+    echo �訡�� ����஢���� ����� .git 
+    goto end
+    
+:ErrorRemoveTemp
+    echo �訡�� 㤠����� �६����� ����� sas.maps 
+    goto end
+    
+:NoGit
+    echo �訡��: �� ��⠭����� Git
+    goto end
+    
 :end
-pause
\ No newline at end of file
+    pause
\ No newline at end of file