- Solution 1: Get the latest code and reset the code
git fetch origin
git reset --hard origin/[tag/branch/commit-id usually: master]
# Modified from: http://stackoverflow.com/a/11010158/215200 | |
$fromFolder = "D:\FOLDER\" | |
$rootName = "FILENAME" | |
$ext = "EXT" | |
$from = "{0}{1}.{2}" -f ($fromFolder, $rootName, $ext) | |
$fromFile = [io.file]::OpenRead($from) | |
$upperBound = 100MB |