Wednesday, December 12, 2018

Form a new repository with a directory in Git repository and upload

The following are the steps:
  1. git filter-branch --subdirectory-filter <target_directory>
  2. git remote set-url origin <new_git_url>
  3. Check whether remote url is changed:
    git remote -v
  4. git push

No comments:

Post a Comment