Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The setting method of multiple default working directories in git bash

Shulou Source: shulou.com Published: 2022-06-03 08:15:56 11月23日 Update

Because you switch between three or four projects every day, open git bash for the first time every day, then change directories, and do this once for each project. It's also quite repetitive. How can such repetitive work be done?

In fact, there is a perfect way to solve this problem:

Right-click git bash, first create a desktop shortcut, and then right-click the shortcut-> property.

Change the starting position, for example, to the directory of the trading terminal developed by my C # language.

In this way, each time you double-click the above shortcut, git bash goes to the directory set above by default.

Again, set a shortcut to the C++ background project so that there are two shortcut git bash icons on the desktop

There are other projects, and you can also do this by opening each git bash to a different working directory.

It's so simple to solve the problem!

Tags: Mode directory project desktop problem switch method work different two location can be passed background icon that is properties first time terminal language repetition Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Huawei Microsoft OPPO Reno Shulou Technology