1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 11:15:25 +02:00
tldr/pages/common/git-subtree.md
K.B.Dharun Krishna 8538a31451
pages/*: add standard translation and links (#11331)
* pages/*: add standard translation and links

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* fix1: false positives; standardize Bengali, Hindi, Nepali periods

* fix: periods in recently added Bengali pages

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* fix: false positives in modified files

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* cleanup: update to native period in Bengali l10n

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-11-06 14:02:31 +05:30

850 B

git subtree

Tool to manage project dependencies as subprojects. More information: https://manned.org/git-subtree.1.

  • Add a Git repository as a subtree:

git subtree add --prefix={{path/to/directory/}} --squash {{repository_url}} {{branch_name}}

  • Update subtree repository to its latest commit:

git subtree pull --prefix={{path/to/directory/}} {{repository_url}} {{branch_name}}

  • Merge recent changes up to the latest subtree commit into the subtree:

git subtree merge --prefix={{path/to/directory/}} --squash {{repository_url}} {{branch_name}}

  • Push commits to a subtree repository:

git subtree push --prefix={{path/to/directory/}} {{repository_url}} {{branch_name}}

  • Extract a new project history from the history of a subtree:

git subtree split --prefix={{path/to/directory/}} {{repository_url}} -b {{branch_name}}