How to search for git excluded folders in Zed
How to include git excluded folders when searching a project in Zed.
mainly web related notes, posts, whatever, by an average (seasoned) web developer
git 14
How to include git excluded folders when searching a project in Zed.
How to restore a file to a previous state from a tag in git
Improve your life with git bisect to find the exact commit that caused a regression.
How to normalise line endings in a git repository that contains LF and CRLF
How to restore a file to a previous state from another branch in git
How to find recent commits of a given file type using git
How to tell git to ignore files in a repository without adding to .gitignore
A one-liner to create a new git branch from a tag, for example to start a hotfix from a released version.
Useful git commit --amend snippets for changing the last commit message or adding changes with --no-edit.
Common git reset commands for day-to-day use, from discarding uncommitted changes to undoing the last local commit.
A quick reminder of how to check out a remote branch locally with git and start tracking it.
Git tag commands for listing tags and removing all local and remote tags from a repository.
How to create a new branch in git and switch to it in one step with git checkout -b.
Use git checkout - to switch back to the previous branch and quickly toggle between your last two branches.