diff --git a/src/command/utils.rs b/src/command/utils.rs
index fee4d4f..5927982 100644
--- a/src/command/utils.rs
+++ b/src/command/utils.rs
@@ -18,6 +18,7 @@ pub fn create_pkg_dir(out_dir: &Path, step: &Step) -> Result<(), failure::Error>
     let msg = format!("{}Creating a pkg directory...", emoji::FOLDER);
     PBAR.step(step, &msg);
     fs::create_dir_all(&out_dir)?;
+    fs::write(out_dir.join(".gitignore"), "*")?;
     Ok(())
 }