Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set up git bash to work with tabs on windows

I have installed console2 and git bash, my goal is to make git bash working with tabs , I have changed the target path on console setting to "C:\Program Files (x86)\Git\bin\sh.exe" --login -i. When I open console it doesn't give me option for tabs anymore.

like image 476
Petran Avatar asked Nov 25 '13 20:11

Petran


People also ask

How do I split the screen in Git bash?

Launch two instances of GIT Bash and press win + → to automatically divide the screen into two halves and select desired programs.

How do I use Git bash on Windows?

Step 1: Go to Github repository and in code section copy the URL. Step 2: In the Command prompt, add the URL for your repository where your local repository will be pushed. Step 3: Push the changes in your local repository to GitHub. Here the files have been pushed to the master branch of your repository.

How do I open a Git bash in Windows a specific folder?

Using Windows Explorer, navigate to any directory you want, type "cmd" in the address bar it will open Windows command prompt in that directory. Along the same lines, if you have the git directory in your path, you can type "git-bash" in the address bar and a Git Shell will open in that directory.


2 Answers

I've got this working with ConEmu instead.
http://sourceforge.net/projects/conemu/

  1. Install Git Bash
  2. Install ConEmu
  3. Open ConEmu, in settings (top right corner), click "settings"
  4. In the settings tree, open "startup", then "tasks"
  5. Add a new task, or edit one of the existing ones
    • click on the "tab" button in second row from bottom
    • in the first box, enter "[git directory]\bin\sh.exe --login -s"
    • in the second box, enter your preferred startup directory
    • save
    • now assign a hotkey (top right corner) (I have mine on ctrl+T)
  6. You're done! Now you have a multitabbed console in windows, where you can create any number of Git Bash windows via a hotkey.
like image 132
Peter Chen Avatar answered Oct 22 '22 14:10

Peter Chen


This config works for me in Console2:

Title: Git Bash
Icon: C:\Program Files (x86)\Git\etc\git.ico
Shell: C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i"
Startup dir: the path to your git repo

Console2 settings Git Bash

like image 47
Lho Ben Avatar answered Oct 22 '22 13:10

Lho Ben