Weitere ähnliche Inhalte
Ähnlich wie Git Tricks (20)
Mehr von Ivelina Dimova (8)
Kürzlich hochgeladen (20)
Git Tricks
- 6. Branching
git pull
git checkout -b new-feature-branch
git add (-A)
git commit -m “Our commit message”
git merge branch-name -m “Merge
message”
git diff <source_branch>
<target_branch>
- 24. Clone a project with
submodules
.gitmodules
git submodule init
git submodule sync
git submodule update (--recursive)
- 25. Remove a submodule
git rm --cached submodule_path
git rm .gitmodules
rm -rf submodule_path/.git
git add submodule_path
git commit -m "remove submodule
- 29. Work with tags
git tag
git tag -l 'v1.4.2.*'
git tag -a v1.8.6 -m 'Version
1.8.6'
git show v1.86
git push origin v1.8.6