snippets

Useful Git Snippets

Here are some useful Git snippets Get a count number of the number of branches for a repository. git branch | wc -l Include the --all flag to get both local and remote branches git branch --all | wc -l List all branches not merged into another branch, i.e. main git branch --no-merged main Determine …

Useful Command Line …

Here are some useful command line snippets Get the number of files in a directory, by using the ls command this will count the result. ls -l | wc -l List all files in a directory/ directories recursively ls -LR Find all files in a directory based on a pattern ls | grep -P "^A.*[0-9]{2}$" And …

Useful AWS Snippets

Here are some useful AWS snippets