import { AlertTriangle } from 'lucide-react'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; interface ForcePullDialogProps { open: boolean; onOpenChange: (open: boolean) => void; onConfirm: () => void; remoteName?: string; } export function ForcePullDialog({ open, onOpenChange, onConfirm, remoteName = 'the remote' }: ForcePullDialogProps) { const handleConfirm = () => { onOpenChange(false); onConfirm(); }; return ( Force Pull - Discard Local Changes?

This will completely reset your local repository to match the repository pushed to {remoteName}, permanently deleting all local commits and changes that don't exist on {remoteName}.

What will be deleted:

  • All local commits that haven't been pushed to {remoteName}
  • Any work not available on {remoteName}
  • All uncommitted changes
); }