The Git interface that i want to use

twitter logo github logo ・1 min read

This is purely an idea, but i think it's potential to make programming fun again with git.

Imagine we have a command enter-git-mode

Our terminal turns into git mode. What can it do ?

  • Making new folder.

Behind the scene, git will create new branch for us, so that whenever we want to enter, cd foo/, we're inside the foo branch.

  • Moving files.

Now after you edited the code, you want to commit it to a branch, just use the famous: mv file foo/, git will commit the saved file to foo branch.

In general, we need a git mode that will map our folder commands to git command.

Hope this's an idea for a fun hacking weekends for everyone.

twitter logo DISCUSS (2)
markdown guide

Isn't it like having two clones of the project with different branches checked out in each one?

Classic DEV Post from Feb 15 '17

Do you hate JavaScript?

If you follow me on Twitter you know that I poke fun at JavaScript quite a bi...

Truong Hoang Dung profile image
I hate technical debts, very much. Learning to clean debt out of my life.

A blogging community of over 100,000 software developers Join