- Save file without an extension
- Right click and select
Get info
- Click on the lock icon (set to unlocked)
- Open terminal and navigate to saved location on file
- execute
chmod 700 switch_git
- run the file :-)
Created
September 27, 2018 03:22
-
-
Save makunomark/450671ba37e85705b7d8421bf220f888 to your computer and use it in GitHub Desktop.
Bash script to quickly change your git configs
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
#!/bin/bash | |
git config --global user.name "sample name" | |
git config --global user.email "[email protected]" | |
echo Successfully set to: | |
git config --global user.name | |
git config --global user.email |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to run: .
/switch_git