mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 11:53:11 +02:00
git-feature: add page (#9470)
This commit is contained in:
parent
06755136dc
commit
7adfe7b3e6
1 changed files with 21 additions and 0 deletions
21
pages/common/git-feature.md
Normal file
21
pages/common/git-feature.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# git pull
|
||||
|
||||
> Create or merge feature branches.
|
||||
> Feature branches obey the format feature/<name>.
|
||||
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#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}} --remote {{remote_name}}`
|
Loading…
Add table
Reference in a new issue