Provided that you are not trespassing, it's legal to pick wild garlic leaves for personal consumption. (If you are in any doubt, check local bylaws.) However, do forage responsibly and take only what you need. Note that it is illegal to dig up any part of the plant. If you want to get wild garlic growing in your garden, try sowing some seed. Note that it can be invasive however!