Home / Git Tips Git Tips Collection 21.7k stars GitHub Contents git-tips Tools: Basic Operations Generates a summary of pending changes Submodules and Subtrees git-tips 中文 15.9k updated 3y ago Русский 한국어 1.0k updated 4y ago Tiếng Việt 28 updated 8y ago 日本語 237 updated 5y ago नेपाली updated 7y ago Polski 15 updated 6y ago فارسی updated 1y ago Tools: Here in Docker container 13 updated 9y ago Basic Operations Clone a shallow copy of a repository ``sh git clone https://github.com/user/repo.git --depth 1 `` Duplicating a repository ``sh git clone --bare https://github.com/exampleuser/old-repository.git git push --mirror https://github.com/exampleuser/new-repository.git `` Generates a summary of pending changes Generates a summary of pending changes ``sh git request-pull v1.0 https://git.ko.xz/project master:for-linus `` Submodules and Subtrees Get latest changes in your repo for a linked project using subtree git subtree pull --prefix=<directoryname>/<projectname> --squash git@github.com:<username>/<project_name>.git master