import { AlertTriangle } from 'lucide-react'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; interface ForcePushDialogProps { open: boolean; onOpenChange: (open: boolean) => void; onConfirm: () => void; remoteName: string; } export function ForcePushDialog({ open, onOpenChange, onConfirm, remoteName, }: ForcePushDialogProps) { const handleConfirm = () => { onOpenChange(false); onConfirm(); }; return ( Force Push to {remoteName}?

This will completely overwrite the commit history on {remoteName} with your local version, permanently deleting any commits and changes on {remoteName} that don't exist locally.

What will be deleted from {remoteName}:

  • All commits on {remoteName} that aren't in your local repository
  • Any work by other contributors not in your local copy
  • The entire commit history will be replaced with your local history
); }