DEV Community

Truong Hoang Dung
Truong Hoang Dung

Posted on

The Git interface that i want to use

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.

Oldest comments (2)

Collapse
 
sleepyfran profile image
Fran González

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

Collapse
 
tobiassn profile image
Tobias SN

Yeah pretty much.