Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- param=$1
- config="gurkan"
- name="defaultname"
- mail="defaultmail"
- BLUE='\033[0;34m'
- ORANGE='\033[0;33m'
- GREEN='\033[0;32m'
- NC='\033[0m'
- echo "\n${ORANGE}---- current ----${NC}"
- git config --global --list
- echo "${ORANGE}---- current ----${NC}\n"
- if [ "$param" != "$config" ]; then
- if [ "$param" != "" ]; then
- config="$param"
- name="$1"
- mail="$2"
- fi
- fi
- echo "${BLUE}---- new settings ----${NC}"
- echo "new name : $name"
- echo "new mail : $mail"
- echo "${BLUE}---- new settings ----${NC}\n"
- git config --global user.name "$name"
- git config --global user.email "$mail"
- echo "${GREEN}---- new ----${NC}"
- git config --global --list
- echo "${GREEN}---- new ----${NC}\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement