- Notifications
You must be signed in to change notification settings - Fork160
Find the right git commands without digging through the web.
License
summitech/gitexplorer
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Table of Contents
Last year, we came acrossSarah Drasner's array explorer. It is a really cool resource for anyone to easily figure out the best JS array method to use. We loved it and decided to build something similar for Git.
Website:Click to find the right git commands without digging through the web.
Explore and Enjoy!
You can reach us onthe official git explorer twitter handle or onSummitech's twitter handle.
- React
- Netlify
- Our first hosting platform wasSurge. Super easy to set up and very reliable 👍. 100% recommend!
yarn (Install all dependencies)yarn startTo try GitExplorer in a docker container, run this:
docker-compose upAwesome devs and designer atSummitech
Thank you for contributing to GitExplorer!
Please follow the below instructions to send a Pull Request (Search the website to make sure that this command doesn't already exist).
The data folder (inside the src directory) is where you will be operating from. The three files you should be concerned with are theprimary-options.js,secondary-options.js andtertiary-options.js files.
These three files are responsible for the options a user can pick.
primary-options.js contains an array of objects responsible for the options of the first select box.secondary-options.js contains an object. This object houses an arrays of objects (a mouthful 😄), this is responsible for the second set of options a user sees when they select a primary option.tertiary-option.js file is responsible for cases where there needs to be a third & final select box.
- Please ensure you are not on the master branch. Checkout to a new branch entirely.
- Add an object to the array in the
primary-options.jsfile. Sample Format:
{ value: 'show', label: 'show/view' }- Add an array to the
secondary-optionsfile. Sample Format:
show: [ { value: 'repo-status', label: 'status of project including staged, unstaged and untracked files', usage: 'git status' nb: 'To know about this command, "run git status --help"' }, { value: 'logs', label: 'commit logs/history' },Thenb is optional. It is responsible for what the user sees in the notes section.
\n is used to insert newline.
- To add tertiary options, remove the
usageandnbkey/value pair for that command in thesecondary-options.jsfile e.g..
show: [ { value: 'logs', label: 'commit logs/history' },then supplytertiary-options.js file the necessary data e.g.
logs: [ { value: 'all', label: 'all', usage: 'git log', nb: 'Type q in the terminal to exit the logs' }, { value: 'last-n-commit', label: 'for last xxx number of commits', usage: 'git log -n', nb: 'Replace n with number of commits e.g. git log -2' }, { value: 'particular-period', label: 'since a particular period', usage: 'git log --since=period', nb: 'Replace period with intended timeframe e.g git log --since=3days. You can use dates like 2018-12-31.\n\n Similar flags are --until, --before, --after' }]- Once you are done, add, commit, push and create a PR to Master.
You can also contribute to the continued success of the project via donation. Please click thislink.
- Enforce HTTPs & offline capabilities
- Open source
- PWA
- Shareable commands
About
Find the right git commands without digging through the web.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.