How Close To My Boundary Can I Build A Garage?

Can I build garage on Boundary?

.

How close to the property line can I build a detached garage?

Can I build a garage next to my Neighbours garage?

Can you build right up to the boundary?