Архив за месяц: Июнь 2022

Полезные команды git

cd /d/dev/git.test/
git clone /d/dev/repository.git ./
git branch -a # show all branches 
git checkout development

git pull /d/dev/gdrive/repository.git/ development

git init
git add --all
git commit -m "dfdf"
git commit -am "dfdf" = git add --all + git commit -m "dfdf"
 
git branch master
git merge -m "message"
git checkout -b development

cd /d/dev/git-repo
git clone --bare /r/test /d/dev/git/test.git


Полезные команды Dism

Команды DISM


dism /Get-WimInfo /WimFile:E:\sources\install.wim
dism /Export-Image /SourceImageFile:D:\Downloads\installx64.esd /SourceIndex:5 /DestinationImageFile:D:\Downloads\install.wim /Compress:max /CheckIntegrity
Dism /Apply-Image /imagefile:D:\Downloads\installx64.esd /index:5 /ApplyDir:V:\

dism /Mount-Wim /wimfile:D:\Distrib\Microsoft\win10_pt_1607\install.wim /index:1 /mountdir:C:\wim 
dism /image:C:\wim /enable-feature /featurename:NetFx3 /All
dism /Image:C:\wim /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess
dism /Image:C:\wim /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:G:\sources\sxs
Установить обновление в примонтированный образ:
dism /image:C:\wim /Add-Package /PackagePath:D:\temp\windows10.0-kb4015438-x64.msu

dism /unmount-Wim /MountDir:C:\wim /commit

dism /Image:c:\wim /Get-Features /Format:Table
dism /cleanup-wim
dism /Online /Cleanup-Image /RestoreHealth
dism /Image:D:\wim /Cleanup-Image /StartComponentCleanup
dism /Image:D:\wim /Cleanup-Image /StartComponentCleanup /ResetBase
dism /Image:D:\wim /Cleanup-Image /SPSuperseded