snippetbashTip
git feature — Create or merge feature branches. Feature branches obey the format feature/name. More information: <
Viewed 0 times
featurecreatecommandgit featureclibranchesmerge
Problem
How to use the
git feature command: Create or merge feature branches. Feature branches obey the format feature/name. More information: <https://manned.org/git-feature>.Solution
git feature — Create or merge feature branches. Feature branches obey the format feature/name. More information: <https://manned.org/git-feature>.Create and switch to a new feature branch:
git feature {{feature_branch}}Merge a feature branch into the current branch creating a merge commit:
git feature finish {{feature_branch}}Merge a feature branch into the current branch squashing the changes into one commit:
git feature finish --squash {{feature_branch}}Send changes from a specific feature branch to its remote counterpart:
git feature {{feature_branch}} {{[-r|--remote]}} {{remote_name}}Code Snippets
Create and switch to a new feature branch
git feature {{feature_branch}}Merge a feature branch into the current branch creating a merge commit
git feature finish {{feature_branch}}Merge a feature branch into the current branch squashing the changes into one commit
git feature finish --squash {{feature_branch}}Send changes from a specific feature branch to its remote counterpart
git feature {{feature_branch}} {{[-r|--remote]}} {{remote_name}}Context
tldr-pages: common/git feature
Revisions (0)
No revisions yet.