func (this *GitPkg) Unpak() error {
	// Move to Master Branch
	if _, err := this.Git("checkout", "master"); err != nil {
		return err
	}

	// Delete Pakbranch
	if contained, err := this.ContainsPakbranch(); err == nil {
		if contained {
			// _, err = this.Git("branch", "-D", Pakbranch)
			_, err = this.Git("branch", "-D", this.PakName)
			if err != nil {
				return err
			}
		}
	} else {
		return err
	}

	// // Delete Paktag
	// if contained, err := this.ContainsPaktag(); err == nil {
	// 	if contained {
	// 		_, err = this.Git("tag", "-d", Paktag)
	// 		if err != nil {
	// 			return err
	// 		}
	// 	}
	// } else {
	// 	return err
	// }

	return nil
}
// Unpak will remove a branch named pak and a tag named _pak_latest_ in a git repo.
Unpak will remove a branch named pak and a tag named _pak_latest_ in a git repo.
// Unpak will remove a branch named pak and a tag named _pak_latest_ in a git repo .
func (this *GitPkg) Unpak() error {
	if _, err := this.Git("checkout", "master"); err != nil {
		return err
	}
	if contained, err := this.ContainsPakbranch(); err == nil {
		if contained {
			_, err = this.Git("branch", "-D", this.PakName)
			if err != nil {
				return err
			}
		}
	} else {
		return err
	}
	return nil
}
func ( this * GitPkg ) Unpak ( ) error { if _ , err := this . Git ( " " , " " ) ; err != nil { return err } if contained , err := this . ContainsPakbranch ( ) ; err == nil { if contained { _ , err = this . Git ( " " , " " , this . PakName ) if err != nil { return err } } } else { return err } return nil }
Unpak will remove a branch named pak and a tag named _pak_latest_ in a git repo.
Unpak will remove a branch named pak and a tag named _pak_latest_ in a git repo .
// Move to Master Branch // Delete Pakbranch // _, err = this.Git("branch", "-D", Pakbranch) // // Delete Paktag // if contained, err := this.ContainsPaktag(); err == nil { // 	if contained { // 		_, err = this.Git("tag", "-d", Paktag) // 		if err != nil { // 			return err // 		} // 	} // } else { // 	return err // }