The Epic of Gilgamesh is not one text. It is a thousand-year edit history — Sumerian poems, an Old Babylonian epic, and the Standard Babylonian edition compiled by the scribe Sin-leqi-unninni — surviving as a cloud of broken clay tablets. Each pull request above is one of the ancient editor's changes, reconstructed line by line from the electronic Babylonian Library's critical edition.
$ git log --oneline gilgamesh c1100BC (HEAD -> standard-babylonian) He who saw the Deep — Sin-leqi-unninni's edition c1700BC Surpassing all kings — the Old Babylonian epic c2100BC Five Sumerian poems of Bilgames (Ur III) c2700BC (unreachable) a king in Uruk, if he was real