Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git remove untracked branches

# this is powershell script for Windows execution

git checkout master; 
git remote update origin --prune; 
git branch -vv | Select-String -Pattern ": gone]" | % { $_.toString().Trim().Split(" ")[0]} | % {git branch -d $_}
Comment

PREVIOUS NEXT
Code Example
Shell :: check maven version in ubuntu 
Shell :: change password arch linux 
Shell :: dollar to pkr 
Shell :: download sublime text ubuntu 20.04 
Shell :: linux mint 20 dark mode 
Shell :: .desktop file ubuntu 
Shell :: eslint init 
Shell :: uvicorn ERROR: [Errno 98] Address already in use 
Shell :: create branch in git 
Shell :: linux auto suspensd stop 
Shell :: ImportError: No module named tensorflow 
Shell :: kill process in windows 
Shell :: pnpm version 
Shell :: arch pacman remove 
Shell :: composer install linux 
Shell :: git stash abort 
Shell :: git ignore 
Shell :: linux external hard drive chmod 
Shell :: kubernetes get deployments 
Shell :: could not find driver postgres laravel 
Shell :: git go back a commit 
Shell :: nuget commandline 
Shell :: symfony install doctrine 
Shell :: linux activate ssh 
Shell :: clear untracked files git 
Shell :: libc-bin error 
Shell :: pip install --upgrade 
Shell :: bin/magento command not found 
Shell :: add file to gitignore 
Shell :: How to unzip a file using the cmd? 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =