This bash script automates the process of setting up Git and generating an SSH key for GitHub integration.
curl -o setup-git.sh https://raw.githubusercontent.com/sreesreejuks/git-automation/master/setup-git.sh
chmod +x setup-git.sh
./setup-git.sh- Installs Git
- Configures global Git username and email
- Generates SSH key (if not exists)
- Displays SSH public key for GitHub setup
- Ubuntu/Debian-based system
- Internet connection
curlinstalled- Bash shell
- Updates package list
- Installs Git
- Configures Git global settings
- Generates ED25519 SSH key
- Displays public SSH key for GitHub
$ ./setup-git.sh
👤 Enter your Git username: YourGitHubUsername
📧 Enter your Git email: your.email@example.com- Uses ED25519 SSH key type
- Generates key in standard
.sshdirectory - Requires manual SSH key addition to GitHub