data: 'id=$git',
değil de
data: 'id=<?=$git?>',
ve ya
data: 'id=<?php echo $git ?>',

yoksa $git i tanımaz javascript