git commands i did not know

2025-03-11 GIT

I read about some interesting git commands that I don't know.

Local test environment

For testing I like to use a local 'remote' repository

Clean Untracked Files and Directories

git reset --hard reset local changes, but not remove untracked files.

git clean -fd remove all untracked files. It not removes ignored files.

Append changes to the last commit

Links

❰ back