Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nikolay@KoLin:~/tmp$ git init
- Initialized empty Git repository in /home/nikolay/tmp/.git/
- nikolay@KoLin:~/tmp$ touch f g h
- nikolay@KoLin:~/tmp$ git add f
- nikolay@KoLin:~/tmp$ git commit -m f
- [master (root-commit) f9cbe42] f
- 1 file changed, 0 insertions(+), 0 deletions(-)
- create mode 100644 f
- nikolay@KoLin:~/tmp$ git add g
- nikolay@KoLin:~/tmp$ git commit -m g
- [master c4f1c6e] g
- 1 file changed, 0 insertions(+), 0 deletions(-)
- create mode 100644 g
- nikolay@KoLin:~/tmp$ git add h
- nikolay@KoLin:~/tmp$ git commit -m h
- [master bae0beb] h
- 1 file changed, 0 insertions(+), 0 deletions(-)
- create mode 100644 h
- nikolay@KoLin:~/tmp$ git log
- commit bae0bebe5815e9ca32f43f47eb725ac020b6f0c3 (HEAD -> master)
- Author: Nikolay Nechaev <Nikolay_Nechaev@mail.ru>
- Date: Mon Jan 25 16:45:25 2021 +0300
- h
- commit c4f1c6e440988233098cc2dcb8ad8bf3cd1803a2
- Author: Nikolay Nechaev <Nikolay_Nechaev@mail.ru>
- Date: Mon Jan 25 16:45:19 2021 +0300
- g
- commit f9cbe428ff170dc400eaa42dd5eea8ef680b5fe5
- Author: Nikolay Nechaev <Nikolay_Nechaev@mail.ru>
- Date: Mon Jan 25 16:45:14 2021 +0300
- f
- nikolay@KoLin:~/tmp$ VISUAL='sed -i -n /c4f1c6e/!p' git rebase -i c4f1c6e~
- Successfully rebased and updated refs/heads/master.
- nikolay@KoLin:~/tmp$ git log
- commit 2c868b1c50c1def4c60e122305dd402d29fb9fb9 (HEAD -> master)
- Author: Nikolay Nechaev <Nikolay_Nechaev@mail.ru>
- Date: Mon Jan 25 16:45:25 2021 +0300
- h
- commit f9cbe428ff170dc400eaa42dd5eea8ef680b5fe5
- Author: Nikolay Nechaev <Nikolay_Nechaev@mail.ru>
- Date: Mon Jan 25 16:45:14 2021 +0300
- f
- nikolay@KoLin:~/tmp$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement