Fix typo in new repo example and expand help

This commit is contained in:
James Skemp 2020-04-16 13:12:28 -05:00
parent ce7c593088
commit 67f845acb3
1 changed files with 3 additions and 1 deletions

View File

@ -6,10 +6,12 @@ Useful if you want to pull a directory, and its commit history, out into a new r
git clone _.git
# Get only the files and commits impacting a particular directory.
# This should be the name of the directory only; if using PowerShell or the like make sure it does not include path information.
# <branchName> is the name of the default branch, generally master.
git filter-branch --prune-empty --subdirectory-filter <pathToDirectory> <branchName>
# View and then update your remotes with the new repo location.
git remove -v
git remote -v
git remote set-url origin _.git
git push -u origin <branchName>