Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Windows Powershell


create a new file with new-item

new-item -name 'foobar.txt' -itemtype file -path . -value 'foobarpop'

create a new directory with new-item

new-item -name 'foobar' -itemtype directory -path .

moving items with move-item

move-item -path ~/.gitconfig -destination .

Opening files


code ./

Powershell Profile (Bash Profile Equivelant)


Redirecting Output to File

git diff develop.. > diff.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment