GIT
GIT: Forget Previously …
There are times we mistakenly check in certain files into our repository, or change our mind after a file has already been committed. I see this most often with .env or config files that contain sensitive information like passwords or API keys. These files are needed for the application to run, but …
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 …
GIT: Fatal Ambiguous …
While rare, you might run into an error when using Git version control that your branch name and a filename are the same. The error happens when you attempt to run a git command using the conflicting name. Error: fatal: ambiguous argument ‘branch_name’: both revision and filename As an …