Sharing the whole car
Sharing just the ride
There are websites to organize ride-sharing where people often also share the expenses for the rides - or some even try to make money from passengers.
Rides may be with personal cars or also with group tickets for public transportation...
- Hitchwiki has much information on hitchhiking