Scripts/Git.ps1
git config user.name git config user.email git config --global user.name "Me" git config --global user.email "me@there.com" sml Git git branch -a git fetch --all git pull --all # Delete branch git branch -D $BranchName # Delete remote branch git push origin -d $BranchName git fetch --all --prune # Werkt niet: git branch -D -r $BranchName # Commit one file git status # New file git add .\Functions\Hoi.ps1 git commit -i .\Scripts\Git.ps1 -m 'test' git push git switch main git switch preprod # Nieuwe repo gh repo create # Nieuwe branch $BranchName = "branchname" git branch $BranchName git push --set-upstream origin $BranchName git add . git commit -a -m '' git push git commit -i (Get-ChildItem *.psd1).Name -m 'Version update' gh pr create gh pr list gh pr gh pr merge # Revert commit git reset # git reset --soft HEAD~ git log --max-count 5 git revert "aaaaa" --no-edit |