Skip to content

Commit 0e53ad2

Browse files
committedNov 6, 2021
2 parents 679a5d5 + 370550a commit 0e53ad2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎Modules/Scripts/Update-Gits.ps1

+5-2
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,14 @@ Begin
4848

4949
if ($Reset)
5050
{
51+
# revert uncommitted changes that have been added to the index
5152
git reset --hard origin/$br
53+
# revert uncommitted, unindexed changes (f=force, d=recurse, x=uncontrolled)
54+
git clean -dxf
5255
}
5356

54-
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
55-
git -c diff.mnemonicprefix=false -c core.quotepath=false pull --no-commit origin $br
57+
git fetch origin
58+
git pull origin $br
5659

5760
Pop-Location
5861
}

0 commit comments

Comments
 (0)
Please sign in to comment.