Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo dnf install -y xclip
- git config --global user.name "Ashesh Kumar Singh"
- git config --global user.email user501254@gmail.com
- ssh-keygen -t rsa -f ~/.ssh/git_rsa -C "user501254@gmail.com" -P ''
- xclip -sel clip < ~/.ssh/git_rsa.pub
- cat >> ~/.ssh/config <<EOL
- #Github (default)
- Host gh
- HostName github.com
- User git
- IdentityFile ~/.ssh/git_rsa
- #Bitbucket (secondary)
- Host bb
- HostName bitbucket.org
- User git
- IdentityFile ~/.ssh/git_rsa
- EOL
- chown $USER ~/.ssh/config
- chmod 644 ~/.ssh/config
- ssh-add ~/.ssh/git_rsa
- ssh -T gh
- ssh -T bb
- cat >> ~/.bashrcs <<EOL
- alias BB='cd ~/Documents/00_Bitbucket'
- alias GH='cd ~/Documents/00_GitHub'
- EOL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement