If you have need to get rid of a bunch of files that are in your git repo but not yet tracked it can be tedious to do the job one file at a time. Git has you covered with the git clean command. Warning: This is a permanent loss of files. Always use –dry-run
Cleanup and remove all merged local and remote git branches
After working on a project for a while you wind up with lots of feature and hotfix branches. If you are working on a team with a remote cannonical project repo there will likely be dozens or hundreds of stale branches that need pruning. Here are a few quick commands that will help you clean
Recursively count all files in a directory from the terminal
If you utilize the terminal on a regular daily basis like I do you are bound to run into times when you need to get a count of how many files exist in a directory structure. Here is some code that will display that count for you. find . -type f | wc -l The
Quick and easy way to show the current Git branch on your command prompt
If you work with lots of branches in Git it is nice to be able to see at a glance which branch you are on instead of typing git branch each time. Here are 4 quick lines you can add to your bash prompt that will show the current branch. You will need to edit
Add or Update your vSphere or ESXi license key through the terminal
If you are like me and you forgot to input your vSphere or ESXi license key before it expired not to fear! It is possible to update the license key through the terminal. The license is stored in a plain text file at /etc/vmware/vmware.lic. To edit it from the terminal type in: vi /etc/vmware/vmware.lic Erase