Link to the book’s website: https://www.jmilne.org/math/CourseNotes/gt.html
Here’s a description of the book given by the author:
The first version of these notes was written for a first-year graduate algebra course. As in most such courses, the notes concentrated on abstract groups and, in particular, on finite groups. However, it is not as abstract groups that most mathematicians encounter groups, but rather as algebraic groups, topological groups, or Lie groups, and it is not just the groups themselves that are of interest, but also their linear representations. It is my intention (one day) to expand the notes to take account of this, and to produce a volume that, while still modest in size (c200 pages), will provide a more comprehensive introduction to group theory for beginning graduate students in mathematics, physics, and related fields.
J. S. Milne about his math text book “Group Theory”
The book, including the source files, is available under a Creative Commons licence CC BY-NC-SA 4.0.