swcarpentry / windows-installer

Software Carpentry installer for Windows.
MIT License
21 stars 17 forks source link

How to change the git bash default directory? #65

Open rgaiacs opened 7 years ago

rgaiacs commented 7 years ago

@lixuekai2001 opened https://github.com/swcarpentry/workshop-template/issues/425 that says

After installing the Git Bash, the default directory is at C:\Program Files\Git\i. However in this directory I cannot neither create new files by

$ winpty nano draft.txt

nor copy/paste the files by

$ cp a.txt b.txt

Does anyone have experience how to change the directory to the desktop?

I think that this issues belongs here instead of the workshop-template so I'm moving it.

@lixuekai2001 you can change the directory using

$ cd C:\Users\YOUR-USERNAME\Desktop

I don't know how to change the default.