git clone using password with special character

$ git clone https://<user>:<password>@<gitserver>/<path>/<repo>.git
if password has special characters like an exclamation mark, you need to use  percent encode which is often called URL encoding.

  !   #   $   &   '   (   )   *   +   ,   /   :   ;   =   ?    @ 
 %21 %23 %24 %26 %27 %28 %29 %2A %2B %2C %2F %3A %3B %3D %3F %40 
[    ]
%5B %5D
For example  :
$ git clone https://myuser:password%21@github.com/myuser/repo.git