Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing instructions for the Windows crowd #58

Open
Lockszmith-GH opened this issue Feb 29, 2024 · 0 comments
Open

Missing instructions for the Windows crowd #58

Lockszmith-GH opened this issue Feb 29, 2024 · 0 comments

Comments

@Lockszmith-GH
Copy link

Awesome project!

I wanted to share this with my fellow DevOps developers, but they are strictly Windows.

I couldn't find clear, step-by-step instructions (I might have not searched correctly) and so I came up with a short blurb explaining how to access bash-git, and optionally set it up to be part of Windows Terminal.

I hope this helps out others, and maybe even becomes an instruction file in the repo.

Instructions for Windows users:

** The instructions assume you have a directory at the root of your profile named source in which your source code goes. If that is not the case, you will want to change the %USERPROFILE%\source and ~/source values in the commands below.

To run the exercises on Windows, you need to run in git-bash​, by either:

  • Right-clicking a directory and choosing "Open Git Bash here"
  • Running the following command*:
git-bash --cd="%USERPROFILE%\source"

* This opens a new mintty terminal window, running bash. See Windows Terminal Profile section below for an alternative.

From within git-bash​, you will be able to run the commands from the web site and initialize the exercises.

Windows Terminal Profile

If you prefer to use Windows Terminal instead of mintty, follow the steps below to add a git-bash profile:

  • Add a new profile
  • Duplicate from "Command Prompt"
  • Rename the profile (I have it as "git-bash")
  • Replace the command with:
bash --noprofile --norc -c 'echo Starting bash...; cd ~/source; exec bash --login -i'
  • From this point onwards, you can start git-bash inside Windows Terminal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant