Fix typo in new repo example and expand help
This commit is contained in:
parent
ce7c593088
commit
67f845acb3
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue