Put the help on GitHub.
First: Install ubuntu. Enter the following command on the terminal:
sudo apt-get install git-core git-gui git-doc
Next: Set the SSH key
- Check whether there is an SSH key.
$cd ~/.ssh
If this directory is not available, go to step 3.
- Backup
- Generate a new SSH file.
$ssh-keygen -t rsa -C "email"
Press enter directly. Then you will be asked to enter the password. Then a directory named. SSH is generated, which contains two files: id_rsa and id_rsa.pub.
- Put this SSH file on GitHub. Use the public key. Register a user on GitHub, and then go to account-setting to copy the id_rsa.pub content.Copy the content in id_rsa.pub.
- Test OK. Enter the following command:
$ssh -T [email protected]
In ubuntu, you will be asked to enter the password. after entering the password, the user name displayed on GitHub will be displayed.
Then: Set git account information:
Enter the following command in the terminal:
Git config -- global user. Name "username"
Git config -- global user. Email "email"
The help document says no token is needed. Then you can start creating a database and start using it.
GitHub -- git settings and GitHub usage