Skip to main content

rgch/git/
checkout.rs

1use crate::proc::execute;
2
3pub fn checkout(branch: &str) {
4    let cmd = format!("git checkout {}", branch);
5    execute(&cmd);
6}
7
8pub fn checkout_new_branch(branch: &str) {
9    let cmd = format!("git checkout -b {}", branch);
10    execute(&cmd);
11}