Linux installation steps using GitHub

  
                

Git is a distributed version control system, and GitHub is a Git-based website that provides Git services for users. The following small series will introduce you to how Linux installs and uses GitHub and solves the problem of GitHub code upload. Understand it.

1. In the website registered account, create a test project into the project, there will be a lower-right corner of the warehouse project addresses.

2.Install github under Linux

sudo apt -get install git git-core git-doc

3. Create rsa public key

ssh- Keygen -t rsa -C “[email protected]

There is a need to fill in the password during the whole process

and then go to the ~/.ssh directory to find the public key id_rsa.pub

Notepad opens the copied text

Go to the settings on github.com, find the pubkey option, and fill in the public key.

Fill in the proposition

4. Set account information

git config --global user.name “lukeyan”

git config --global user .email [email protected]

5. Test link:

If you have rs successfully authenticated, but GitHub does not provide shell access. This means that the link has been made

Next upload:

git init

git add . #if. Indicates to upload files in all directories, which can be a file

git commit -m ‘version 1.0’

git remote add origin https://github.com/username/Test.git

git push origin master -f

The above is a Linux installation using GitHub. It uses GitHub to host various git libraries, providing a web interface that users can use on GitHub. Easily find massive open source code.

Copyright © Windows knowledge All Rights Reserved