aceol / metro-git

Metro RATP with the git tree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exercice Metro Git

Prerequisite

Nice to have, just in case, undo and lola :

git config --global alias.undo '!f() { \
    git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; \
}; f'

git config --global alias.lola 'log --graph --decorate --pretty=oneline --abbrev-commit --all'

Instructions

  1. Rename Gare de Lyon
  2. Switch Bastille <-> Gare de Lyon
  3. Move ligne 2b onto ligne 2 (hint: rebase)
  4. Move ligne 1 onto ligne 1 (hint: rebase onto)
  5. Create ligne 9a from Franklin D. Roosevelt, add Miromesnil, République, Voltaire
  6. Create Nation (hint: Octopus merge)
  7. Clean the a and b branches, and finish the ligne 1 and 9.

Extras

  • Empty commit :
git commit --allow-empty -m "commit message"
  • Create Orphan branch :
git checkout --orphan orphan_name
git rm -rf .
  • Merge Orphan branch :
git merge orphan_name --allow-unrelated-histories

About

Metro RATP with the git tree