Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Let's talk generating .gitignore files - a file every git repo should have. Some tools for scaffolding projects like create-tauri-app or composer create-project initialize .gitignore for you. But what about applications which do not use these? Like when generating new solution in Visual Studio or creating a new Go app. Many developers tend to manually copy the ignore files from their previous projects or go to github/gitignore to get them. In my opinion, this is very tedious and can be achieved in a simpler and faster way - via the CLI.
This article briefly introduced the ignoreinit CLI tool for generating .gitignore files conveniently from the commandline. In the future, I would like to enhance the tool to also support .dockerignore files, have more .gitignore repositories available and have the tool available in package managers like snap, apt or chocolatey for smoother installation experience.
The tool itself is written in Go, leveraging a library called go-github to fetch gitignores. In the first iteration, it can either download a new gitignore file based on selected language and framework (for now it has to be one of the gitignore files present in the aformentioned github/gitignore repo) or replace existing gitignore by specifying new language and path of the ignore to be replaced.
Related posts
- GitHub Discussion about the recent feed changes becomes 3rd most upvoted ever
- Generating an OAuth client using "All" does not allow for creation of auth keys
- CLI tool for Markdown's URLs check
- Made a CLI tool for Markdown URL format check in Github repos
- Should I use GitHub with Unity if I am working by myself?