use crate::git::{is_remote_exist, remote::unlink_remote};
use anyhow::{Context, Result};
pub fn unlink() -> Result<()> {
if is_remote_exist().context("Checking if remote exists")? {
unlink_remote()?;
} else {
println!("First connect to remote");
}
Ok(())
}