Skip to content

Commit

Permalink
Update git.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eynol committed Sep 26, 2024
1 parent 293c571 commit e72a6b8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/linux/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,22 @@ then
GIT_COMMITTER_NAME=$NEW_NAME
fi' -- --all

```


## git subtree


### add a subtree

```
git subtree add --prefix my-subdirectory http://mysite.com/my_other_project.git master --squash
```


### update a subtree

```
git subtree pull --prefix my-subdirectory http://mysite.com/my_other_project.git master --squash
```

0 comments on commit e72a6b8

Please sign in to comment.