Export Variable Groups from VSTS

Recently I stuck in a situation where I wanted to export variable groups from my VSTS account but there was no such option to export variable group. You can use this PowerShell to download a clone copy of Variable Groups.…

Get list of all active TCP/UDP ports

Just type netstat -a in command prompt & press enter. This will print a list of all active TCP & UDP ports running on your machine.More detail about this command netstat can be found on below…

How to refresh git branches in visual studio?

ProblemDeleted remote branches are still visible in Visual Studio Team Explorer (Branches Section).SolutionYou just need to run git fetch --prune command in your solution directory using GIT Bash or…

How to rename a local GIT Branch?

If you want to rename the current branch, hit below command:git branch -m <newname>If the branch you want to rename is different from the current branch, then hit below commandgit branch -m…

How to deploy dacpac using SQLPackage.exe

You can follow below steps to deploy a database to SQL Server from the .dacpac file. To deploy the database from dacpac, we will be using SQLPackage.exe. SQLPackage.exe is a command line utility that…

Few useful PowerShell commands

Here I am sharing few important commands in PowerShell which I found useful in my day to day coding. I hope these will help you as well.To print something in consoleWrite-Output "Database publihsed…