While animal agriculture is responsible for 20% and eating plants directly instead of feeding them to animals first would use 75% less land which means we could grow forests at here that store carbon.
The original commenter here just conveniently ignored that though.
Every peer reviewed study on it says between 14.5 and 19.6% is animal agriculture.
https://thebreakthrough.org/issues/food-agriculture-environment/livestock-dont-contribute-14-5-of-global-greenhouse-gas-emissions