MY COMMAND BOOK
Table of Contents
Git Clear Local Branches
Git Clear All Local Branches Except for Current Branche
git branch | grep -v "$(git symbolic-ref --short HEAD)" | xargs git branch -D && git tag -l | xargs git tag -d
Git Fast-Forward Merge
git merge --no-ff feature-branch
Windows Creating a Symbolic Link (Like ln -s) in PowerShell
Syntax (PowerShell 5+ / Windows 10+)
New-Item -ItemType SymbolicLink -Path "C:\link\myshortcut" -Target "C:\original\myfolder"
Example: Link a folder Suppose you want to create a symbolic link from:
Target: C:\Projects\RealFolder
Link: C:\Links\ShortcutToProject
New-Item -ItemType SymbolicLink -Path "C:\Links\ShortcutToProject" -Target "C:\Projects\RealFolder"