A source-code fork happens when developers take the published code of an existing blockchain, change some parameters or features, and start a completely new network from a fresh first block. The new chain shares the original's design but none of its transaction history or balances. It is possible because most blockchain software is open source. A well-known example is Litecoin, launched in 2011 from Bitcoin's code with a different hashing algorithm and a faster block time; many later coins were built the same way from Bitcoin, Ethereum and other codebases.
This differs from a chain-split hard fork, such as the one that produced Ethereum Classic, where an existing chain splits at a particular block and both branches inherit the same history, so holders end up with coins on each side. Both are covered in general terms under fork. Source-code forks were common during the 2017 coin boom, and many were low-effort copies.
Ref 1070001278