~/git via π v3.8.5
β― mkdir git-cherry-pick-learn
~/git via π v3.8.5
β― cd git-cherry-pick-learn
~/git/git-cherry-pick-learn
β― git init
Initialized empty Git repository in /home/walkews/git/git-cherry-pick-learn/.git/
git-cherry-pick-learn on ξ main
β― touch readme.md
git-cherry-pick-learn on ξ main [?]
β― git status
On branch main
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
readme.md
nothing added to commit but untracked files present (use "git add" to track)
git-cherry-pick-learn on ξ main [?]
β― git add .
git-cherry-pick-learn on ξ main [+]
β― git commit -m "init readme"
[main (root-commit) ebd1ff2] init readme
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 readme.md
git-cherry-pick-learn on ξ main
β― echo "Learn Cherry Pick"
Learn Cherry Pick
git-cherry-pick-learn on ξ main
β― git add .
git-cherry-pick-learn on ξ main
β― git commit -m "add title
git-cherry-pick-learn on ξ main
β― echo "# Learn Cherry Pick" > readme.md
git-cherry-pick-learn on ξ main [!]
β― git add .
git-cherry-pick-learn on ξ main [+]
β― git diff
git-cherry-pick-learn on ξ main [+]
β― git diff --staged
diff --git a/readme.md b/readme.md
index e69de29..3490cef 100644
--- a/readme.md
+++ b/readme.md
@@ -0,0 +1 @@
+# Learn Cherry Pick
git-cherry-pick-learn on ξ main [+]
β― git commit -m "add title"
[main 148264d] add title
1 file changed, 1 insertion(+)
git-cherry-pick-learn on ξ main
β― git checkout -b trash-branch
Switched to a new branch 'trash-branch'
git-cherry-pick-learn on ξ trash-branch
β― echo >> readme.md
git-cherry-pick-learn on ξ trash-branch [!]
β― echo >> readme.md
git-cherry-pick-learn on ξ trash-branch [!]
β― echo >> "Cherry Pick is amazing"
git-cherry-pick-learn on ξ trash-branch [!?]
β― cat readme.md
ββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β File: readme.md
ββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1 β # Learn Cherry Pick
2 + β
3 + β
ββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
git-cherry-pick-learn on ξ trash-branch [!?]
β― echo "Cherry Pick is amazing" >>
git-cherry-pick-learn on ξ trash-branch [!?]
β― git commit -m "add whitespace"
On branch trash-branch
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: readme.md
Untracked files:
(use "git add <file>..." to include in what will be committed)
Cherry Pick is amazing
no changes added to commit (use "git add" and/or "git commit -a")
git-cherry-pick-learn on ξ trash-branch [!?]
β― git add .
git-cherry-pick-learn on ξ trash-branch [+]
β― git commit -m "add whitespace"
[trash-branch 94f734b] add whitespace
2 files changed, 3 insertions(+)
create mode 100644 Cherry Pick is amazing
git-cherry-pick-learn on ξ trash-branch
β― echo "TRASH" >> readme.md
git-cherry-pick-learn on ξ trash-branch [!]
β― git add .
git-cherry-pick-learn on ξ trash-branch [+]
β― git commit -m "add trash"
[trash-branch ec43879] add trash
1 file changed, 1 insertion(+)
git-cherry-pick-learn on ξ trash-branch
β― echo "Cherry Pick is Amazing" >> readme.md
git-cherry-pick-learn on ξ trash-branch [!]
β― git commit -m "add cherry pick is amazing"
On branch trash-branch
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: readme.md
no changes added to commit (use "git add" and/or "git commit -a")
git-cherry-pick-learn on ξ trash-branch [!]
β― git add .
git-cherry-pick-learn on ξ trash-branch [+]
β― git commit -m "add cherry pick is amazing"
[trash-branch 6691a34] add cherry pick is amazing
1 file changed, 1 insertion(+)
git-cherry-pick-learn on ξ trash-branch
β― cat readme.md
ββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β File: readme.md
ββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1 β # Learn Cherry Pick
2 β
3 β
4 β TRASH
5 β Cherry Pick is Amazing
ββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
git-cherry-pick-learn on ξ trash-branch
β― git log
commit 6691a343e0ba35d0700c49ec09a99fa8f1f385b9 (HEAD -> trash-branch)
Author: Waylon Walker <[email protected]>
Date: Thu May 13 08:54:58 2021 -0500
add cherry pick is amazing
commit ec438790af36c23aef8eee2122f0dda95313496b
Author: Waylon Walker <[email protected]>
Date: Thu May 13 08:54:07 2021 -0500
add trash
commit 94f734b1adcee0f503c818c0f6bc9da97a0066e2
Author: Waylon Walker <[email protected]>
Date: Thu May 13 08:50:35 2021 -0500
add whitespace
commit 148264da5641033caa537727c6d5199068d58a4d (main)
Author: Waylon Walker <[email protected]>
Date: Thu May 13 08:48:58 2021 -0500
add title
commit ebd1ff22493d860e001f2b96ec948684d496355b
Author: Waylon Walker <[email protected]>
Date: Thu May 13 08:47:10 2021 -0500
init readme
git-cherry-pick-learn on ξ trash-branch
β― git checkout main
Switched to branch 'main'
git-cherry-pick-learn on ξ main
β― cat readme.md
ββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β File: readme.md
ββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1 β # Learn Cherry Pick
ββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ