Skip to content

Instantly share code, notes, and snippets.

View SepehrImanian's full-sized avatar
😁

Sepehr Imanian SepehrImanian

😁
View GitHub Profile
@SepehrImanian
SepehrImanian / changeUser.sh
Last active January 11, 2023 11:29
Change git user in same repo in server
#!/bin/bash
if [[ $1 = "sepehr" ]]; then
git config --local user.email "sepehrimaniann@gmail.com"
git config --local user.name "sepehrimanian"
echo "Change git user to 'Sepehr'"
elif [[ $1 = "ali" ]]; then
git config --local user.email "ali@gmail.com"
git config --local user.name "ali"
echo "Change git user to 'ali'"