This is exactly the use case for git-cherry-pick
git checkout maintenance
git cherry-pick <commit from master>
Related Contents:
- What is HEAD in Git?
- Create a git patch from the uncommitted changes in the current working directory
- How do I provide a username and password when running “git clone git@remote.git”?
- How to update a pull request from forked repo?
- How to add a changed file to an older (not last) commit in Git
- Why does git perform fast-forward merges by default?
- Remote origin already exists on ‘git push’ to a new repository
- How to `git pull` while ignoring local changes?
- The shortest possible output from git log containing author and date
- Simple tool to ‘accept theirs’ or ‘accept mine’ on a whole file using git
- How do I rename a repository on GitHub?
- Error “Your push would publish a private email address”
- Git: “Not currently on any branch.” Is there an easy way to get back on a branch, while keeping the changes?
- Find which commit is currently checked out in Git
- How do I install imagemagick with homebrew?
- How to get changes from another branch
- GitHub – fatal: could not read Username for ‘https://github.com’: No such file or directory
- Can “git pull” automatically stash and pop pending changes?
- What does git push origin HEAD mean?
- Github: readonly access to a private repo
- Unable to negotiate with 40.74.28.9 port 22: no matching host key type found. Their offer: ssh-rsa
- Refresh all files in buffer from disk in vim
- Git rebase fails, ‘Your local changes to the following files would be overwritten by merge’. No local changes?
- Pushing a local branch up to GitHub
- How to create releases in GitLab?
- Accept Incoming Change not appearing in VS Code
- git-stash vs. git-branch
- git log show one commit id only
- What does ‘git remote add upstream’ help achieve?
- Is there a script to list git branches created by me?
- Differences between “git pull” commands when pulling from origin?
- Why can I not switch branches?
- Git gist – Markdown does not work
- How can I turn on a pager for the output of git status?
- gitignore ignore files within a folder that has whitespace in the middle
- Recover dangling blobs in Git
- How to Merge when you get error “Hint: You have divergent branches and need to specify how to reconcile them.”
- Error “Fatal: Not possible to fast-forward, aborting”
- How to check real git diff before merging from remote branch?
- Show sha1 only with git log
- Git workflow without a server
- Excluding files from git-diff
- How can I delete all git branches which have been “Squash and Merge” via GitHub?
- .gitignore files added inside Git submodules
- Is there a way to make Git mark a file as conflicted?
- Merge two remote branches in a Git repository
- How to know which branch a “git log” commit belongs to?
- automatically stash save/pop changes on git rebase?
- git, whitespace errors, squelching and autocrlf, the definitive answers
- git clone can’t resolve proxy