0

I want to import a new "module" library into my project using subtree, but when I imported using these commands:

git remote add module git@111.111.11.1:serverUrl/module.git
git subtree add --prefix=libraries/module/ module master

it brings into git commit history all the history of the "module".

How to ignore "module" history from my project history when adding subtree?

approxiblue
  • 6,982
  • 16
  • 51
  • 59
GeniDeveloper
  • 361
  • 3
  • 18

1 Answers1

1

To omit history when adding subtree module please use --squash option.

Marek Jagielski
  • 802
  • 10
  • 17