This is the GUIDE for
- 🔵🪟 Using the bash script on Windows
- Integrating popular tools with bash scripts
- ⚙️ Reducing repetitive tasks
Git integrates easily with bash, allowing efficient control of its resources. However, many developers are unfamiliar with Git’s internal structure, such as branch statuses, .git objects, and its limitations, making it hard to create effective scripts.
The scripts below remove local branches and tags that are not present on the remote. Before running, push your work or back it up using the git archive command.
Too many branches or tags can make switching or checking out cumbersome:
prune-local-branches.sh
- Removes local branches.prune-merged-branches.sh
- Removes local branches that have been merged.prune-tags-except-latest.sh
- Removes all local tags except the latest.
AWS offers tools for building infrastructure, though they come with limited examples. Fortunately, AWS provides command-line tools that can easily integrate with IDEs and terminals.
Today, setting up WSL2 makes development on Windows quite comfortable. However, situations can arise where:
You need to connect with PowerShell scripts for a project Local development is essential IDE settings are difficult to manage in WSL2 For such cases, running scripts directly on Windows may be unavoidable. Windows Terminal and tools like choco have improved the development environment, but Linux is still superior for development tasks. A compromise is using Git Bash, which brings Linux-like command capabilities to Windows with minimal setup.