Difference betweeen ~/workspace and /home/crio-user/workspace

What exactly is the difference between ~/workspace and /home/crio-user/workspace ?
Both of them seem to give same output in our local workspace but it seems that when I push it to the remote repo, then its different .

The home directory of the user may be different depending on the user. ~/ removes the dependency on specific user (crio-user in this case).