DEV Community

Truong Hoang Dung
Truong Hoang Dung

Posted on

2

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.

Top 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.

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay