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.
gcc and ifor compiler are more commonly used by developers, before the small series also introduced
Shell in Linux is more than just a command, but an interpreter for other commands.
Linux users need to access SSH server frequently. Therefore, in order to facilitate our use, many us
When mounting the second hard disk under Linux, you need to check whether the hard disk can be recog
Linux upgrade Mysql error conflict with file how to do?
Kali Linux installation Google Chrome common problems and solutions
In the Linux system, the head command instance is explained in detail.
Linux uptime command operation example
How to solve Ubuntu 12.04 boot error Checking Battery State problem
Linux system file permissions and access mode introduction
Linux mint how to solve the problem of no sound in the root login
What should I do if Ncurses shows Chinese garbled under Linux?
How does Linux use tools to encrypt data?
Ubuntu 13.10 tips for installing the latest Linux kernel
How to use ext3grep to recover files on Linux
WinXP right-click to add "administrator ownership" method
Change the XP system configuration to make the system run faster (4)
How does win7 not make a file access history?
Win7 system itunes downloaded firmware where
Win10 NIC physical address how to modify Win10 modify NIC physical MAC address graphic tutorial
How to save the desktop settings after Win7 restarts
Solution for Windows XP Recycle Bin can't be emptied
Win10 system to replace the photo viewer background color method