4623 shaares
397 liens privés
397 liens privés
2 résultats
taggé
feature
Une fonctionnalité intéressante apparue dans git 2.5.
2 cas d'utilisations sont cités:
Say you are on a feature branch, and want to make a bug fix in master. You can create a whole new working copy based on master as follows:
git fetch git worktree add -b bugfix-1234 ../bugfix origin/master
Another use case for the worktree feature is when you have long running tasks (say, running build, unit tests, integration tests and functional test) that you want to run while continuing to work on the codebase. In that case, you can:
git worktree add --detach ../project-build HEAD cd ../project-build ./run_build.sh