Ignoring filesMarking files as intentionally untracked (ignored)Which types of files should be ignored?Listing ignored filesTrick – ignoring changes in tracked filesFile attributesIdentifying binary files and end-of-line conversionsDiff and merge configurationTransforming files (content filtering)Keyword expansion and substitutionOther built-in attributesDefining attribute macrosFixing mistakes with the reset commandRewinding the branch head, softlyResetting the branch head and the indexDiscarding changes and rewinding the branchSafer reset – keeping your changesStashing away your changesUsing git stashStash and the staging areaStash internalsManaging worktrees and the staging areaExamining files and directoriesSearching file contentsUn-tracking, un-staging, and un-modifying filesResetting a file to the old versionCleaning the working areaMultiple working directoriesSummaryQuestionsAnswersFurther reading