Getting Git installed in lots of places for a team can be a irksome. Part of your team is running windows, maybe with Cygwin, others with various flavours on unix and osx. Layered on top of that are the applications that we use with git services embedded in them. This should serve as a sample page to show where we can get access to the clients and how we set them up for ssh which is our default.
Installing git
Overview of install at https://git-scm.com/book/en/v2/Getting-Started-Installing-Git. Theres lots of different versions, but boiled up to basics are these below.
Unix
- sudo yum install git-all
- sudo dnf install git-all (RH)
- sudo apt install git-all (debian)
windows
- download and install https://gitforwindows.org/
mac
- brew install git
- or download and install from http://git-scm.com/download/mac
Connections to GitHub
We are specifically only looking at SSH connections so, heres some ways to get your keys sorted
- generate an ssh key
- add the public key to Orahub
- Clone your repository
SSH Key Generation
Unix
ssh-keygen -t rsa
Windows
Use Putty-gen . This is installed as part of the putty installation available here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Add your keys to GitHub or your Enterprise Git Repo
In order to do this, its pretty specific. You need to go to the your user settings page and click on ssh keys, There, you can paste in your public key. This will then let you clone your repositories with SSH as below.
This comment has been removed by the author.
ReplyDelete