www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit d858ff6545565b1b95ce392d7ef90846b693d73f
parent 9f993779264b3eeea1e52b4c14abfc4929152b47
Author: Georges Dupéron <georges.duperon@gmail.com>
Date:   Thu,  5 Apr 2018 23:19:49 +0200

Added an example script which creates a repo, makes a few commits, and rebases.

Diffstat:
Aexample.sh | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git a/example.sh b/example.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +set -e + +if test -e git-rebasei-example; then + echo "Error: git-rebasei-example already exists." + exit 1 +fi + +git init git-rebasei-example +pushd git-rebasei-example >/dev/null + +touch a; git add a; git commit -m "Added a." +git tag -a -m 'base for the git rebase -i example' rebase-base +touch b; git add b; git commit -m "Added b." +touch c; git add c; git commit -m "Added c." +rm b; git rm b; git commit -m "Removed b." +touch d; git add d; git commit -m "Added d." + +git log --oneline --decorate --graph + +git rebase -i rebase-base + +git log --oneline --decorate --graph + +popd > /dev/null + +rm -fr ./git-rebasei-example