Proof (based maps descend on fundamental groups)

If $γ\simeq γ'$ as paths, i.e. they are homotopic relative to $\set{0,1}$, then $f\circ γ\simeq f\circ γ'$ as paths. This shows well-definedness.

It is a group homomorphism as $[f\circ (γ\cdot γ')] = [(f\circ γ) \cdot (f\circ γ')]$.