I want to solve the following problem (Hatcher Ch.1, problem 6):
We can regard $π_1(X,x_0)$ as the set of basepoint-preserving homotopy classes of maps $(S_1, s_0)→(X,x_0)$. Let $[S_1,X]$ be the set of homotopy classes of maps $S_1→X$, with no conditions on basepoints. Thus there is a natural map $Φ :π_1(X,x_0)→[S_1,X]$ obtained by ignoring basepoints. Show that $Φ $ is onto if $X$ is path-connected, and that $Φ([f]) = Φ([g])$ iff $[f]$ and $[g]$ are conjugate in $π_1(X,x_0)$. Hence $Φ$ induces a one-to-one correspondence between $[S_1,X]$ and the set of conjugacy classes in $π_1(X)$, when $X$ is path-connected.
To show that $Φ$ is onto, let $[\phi]$ be some element of $[S_1,X]$. Then it can be represented by some path $f$ at a point $x_1 \in X$. By path-connectedness, there is a path $\gamma$ connecting $x_0$ and $x_1$, so we can consider the path $\gamma \star f \star \bar{\gamma}$ based at $x_0$. Then there is a homotopy between $\gamma \star f \star \bar{\gamma}$ and $f$ (not base-point preserving) by continuously moving the basepoint from $x_0$ to $x_1$ through the path $\gamma$. Hence $\Phi[\gamma \star f \star \bar{\gamma}] = \Phi[f] = [\phi]$.
However, I have no clue what to do to show the conjugacy part.