Hands-on task
Transfer a single commit with cherry-pick
In the repository /root/repo there's a branch feature with two commits: add other (file other.txt) and add hotfix (file hotfix.txt). The current branch is main. Transfer only the add hotfix commit into main without merging the whole branch: hotfix.txt must appear in main, but other.txt must not. Stay on the main branch.
- git cherry-pick
- transferring a commit
- commit hash
- branches