Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

smilee/play

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

18 Commits

Repository files navigation

play

Subtrees

Adding a subtree

git subtree add --prefix {local directory being pulled into} {remote repo URL} {remote branch} --squash

For example: git subtree add --prefix subtreeDirectory git@github.com:smilee/subtreeDirectory.git main --squash will clone git@github.com:smilee/subtreeDirectory.git into the 'subtreeDirectory' directory.

Adding the subtree as a remote

git remote add -f subtreeDirectory git@github.com:smilee/subtreeDirectory.git

Fetch new subtree commits

git fetch subtreeDirectory main
git subtree pull --prefix subtreeDirectory subtreeDirectory main --squash

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /