I am new to git (and GitHub) and saw that a lot of bugs (on GitHub) get fixed by cloning a repository and the clones only exist temporarily for the lifetime of the fix and get closed and deleted afterwards.
How does that technique apply for big projects where compiling times might take hours? One approach in Perforce for instance is to have a main branch and a seperate branch that coexists where individual bugfixes get integrated from. Is that a technique also used with git / GitHub? It doesn't seem wrong but I am not sure which other techniques and approaches exist which I didn't think of.