# KDD github orginization ## Add people to organization 1. Go to your organization (account:kdd.lab@gmail.com) ![](https://i.imgur.com/tj4ot8I.png) 2. [Invite people to the organization](https://docs.github.com/en/enterprise-server@3.0/organizations/managing-membership-in-your-organization/adding-people-to-your-organization) 3. Go to e-mail to accept the invitation ## Setup personal ssh key 1. [Generating a new ssh key in Mac/Windows/Linux](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) 2. Go to .ssh directory ```shell= cd /Users/you/.ssh/ ``` 3. Open the id_rsa.pub and clone all thing in it 4. Go to your github [ssh setting page](https://github.com/settings/keys) 5. Click "New SSH key" button 6. Paste to key area and click "Add SSH key" button ## Push exist repo to github 1. Create a new remote repo in orginization. 2. Check the branch of local repo is **master**. (some accout default is "main") 3. Clone the remote repo ssh url and add to local repo ```shell= git remote add origin ssh://github.com/example/example.git ``` 4. Push to remote repo ```shell= git push origin master ``` ## Clone remote repo to local 1. Go to remote repo page 2. Click "Code" button 3. Switch to SSH tab 4. Copy the remote repo ssh url 5. Open the local terminal 6. Clone the repo ``` git clone ssh://remote_repo ```