Last active
February 11, 2020 06:57
-
-
Save ericyoung/8f41f0a685e3c67944d84517d3dfe86e to your computer and use it in GitHub Desktop.
WSL git issue workaround
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # rbenv | |
| sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev lib | |
| cd | |
| git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
| exec $SHELL | |
| git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build | |
| echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc | |
| exec $SHELL | |
| rbenv install 2.7.0 | |
| rbenv global 2.7.0 | |
| ruby -v | |
| gem install bundler | |
| git config --global color.ui true | |
| git config --global user.name "YOUR NAME" | |
| git config --global user.email "YOUR@EMAIL.com" | |
| ssh-keygen | |
| cat ~/.ssh/id_rsa.pub <-- add key to github | |
| # mysql | |
| sudo apt-get install mysql-server mysql-client libmysqlclient-dev | |
| sudo umount /mnt/c | |
| sudo mount -t drvfs C: /mnt/c -o metadata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment