Skip to content

Latest commit

 

History

History
51 lines (30 loc) · 1.64 KB

README.md

File metadata and controls

51 lines (30 loc) · 1.64 KB

Git Network Trainline

🚂 Show a city's train lines in form of Git Network

Berlins Underground rail map

❓Synopsis

Use this script to create road maps of your own city. This uses simple graph theory on top of git commands to generate a nice git network graph.

🏃‍♂️ Run

First you need to add inputs. In this file https://github.com/ayonious/git-network-trainline/blob/master/src/rawInput.js

  1. Add your git remote head.
  2. Add your roads
  3. You can add comments while describing the stations as imoji param. This will showup in the git network graph as label

Now run

node .

When all is finished successfully

Git Network generated Successfully!!

Now go back to your git network network page: https://github.com/{username}/{repo}/network

Mine is: https://github.com/ayonious/git-network-trainline/network

Rememeber, you can drag and scroll the git graph left and right.

Enjoy!

😞 Limitations

  1. Make sure when inputting the graph there is no cyclic dependencies. This will make the graph not print full map and stop at a junction.
  2. Dont have same imoji for 2 different stations unless its a junction. Also line names need to be distinct.

💡 Inspired by

yangshun/smrt-git which shows Singaporen metro lines in Git Network

📝 License

MIT