-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e666397
commit 1e0f15c
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
### Cherry Pick a Commit | ||
|
||
Copy a commit from one branch to another. Run the below command on the destination branch where you want your commit to be copied | ||
|
||
`git cherry pick -x {{COMMIT_SHA}}` | ||
|
||
- <b>COMMIT_SHA: </b> Commit ID of the commit, which needs to be copied | ||
|
||
#### Example: | ||
|
||
`git commit -x ef579afe0a4540dfced0576930cbf88568cb8a12` | ||
|
||
This will copy the commit from source branch and add it in current branch | ||
|
||
### Related | ||
|
||
- [Commit Ammend](git-commit-amend.md) | ||
- [Commit](git-commit.md) |