git init: Create a new, empty Git repository in the current folder. git init creates a new, empty Git repository in the current folder. It adds a hidden .git folder where Git stores all history and configuration. From then on, Git can track changes in that folder. Typical next steps are adding a .gitignore, making a first commit and connecting a remote with git remote add origin <url>.
Write the .gitignore before the first commit. Folders like vendor and node_modules, build output, log files and especially .env files with secrets should never enter history. Removing a file from a later commit does not remove it from earlier ones, so a committed secret stays in the history until the history itself is rewritten. Most frameworks provide a good starting .gitignore.
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
'Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.'