Tips of Git

Tips of Git


  • delete submodule

1
2
$ git rm the_submodule
$ rm -rf .git/modules/the_submodule
  • ignore submodule

1
2
$ echo "sub_repo/" >> .gitignore
$ git clone https://user@bitbucket.org/user/repo.git sub_repo