GitHub
| Create Free GitHub Repo | |
| Access GitHub with SSH | |
| More Aticles About Git |
Create Free Repository on GitHub
Url -
github.com
Free account means that you can work only with Public repos.
You can read about public github
API
in
this artilce
Everyone can see your code, but only you can edit it.
Do not store password files in a public repository. If you need privacy - buy private mode (Private)
or switch to another service, for example
BitBucket.org.
After the account is created, click on the plus sign and select New repository
Change dir
$ cd /c/Users/aolegovich/Desktop/Sites
You can read more about cloning repo from GitHub here . Short example is:
$ git clone https://github.com/Name/name.git
Cloning into 'heihei.ru'...
remote: Enumerating objects: 83, done.
remote: Total 83 (delta 0), reused 0 (delta 0), pack-reused 83
Unpacking objects: 100% (83/83), done.
Access GitHub with ssh
You can find more info about SSH protocol here
cd ~/.ssh
ssh-keygen -t ed25519 -C "username@email.ru"
eval `ssh-agent -s`
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub
In your browser open
https://github.com/settings/keys
New SSH key
Enter key there and save
git remote set-url origin git@github.com:yourgitusername/yourrepo.git
| Git remote | |
| Git | |
| GitHub | |
| Migrate from HTTPS auth to SSH | |
| GitLab |