Objective
As a young teenager who is optimistic about cutting-edge technology, how can you not use GitHub? A year ago I created GitHub, I know git, but tried, but didn't understand, many fans asked me GitHub account, want to pay attention to a wave, helpless inside nothing, so must learn and write something in, Google a lot of things, tried many times, finally became , the following will share my experience of the essay ~ ~ ~
By the way, to promote my GitHub account: Https://github.com/AngelKitty or click on the top left corner of the blog can enter, will often update GitHub, welcome to pay attention to support, thank-^
First, a brief introduction to Git and GitHub
Git is a fast-growing version control system that is maintained by GitHub.
Advantage:
1, support offline development, offline repository.
2, powerful branch function, suitable for multiple independent developers to collaborate.
GitHub is a Web site that hosts git (open source or closed) projects.
Second, register an account on GitHub and create a project
This is the official GitHub address, where you can register: https://github.com/, and then click Start a Project.
Complete the creation of the project by filling in the following information
Iii. Initialize the local project and submit it to GitHub
When the above creation is complete, the project is empty, first of all we need to clone the remote repository locally. Click Copy remote git library address
After copying the good address, open git Bash (right-click on git) and enter the command: Git clone "Https://github.com/AngelKitty/Xin-Yue.git" in a different directory from the project you want to submit To take the remote repository Clone island locally. I use the SSH address, the same effect ~ ~ ~
Several files are found in the cloned project, with particular attention: sometimes because the files are hidden, you will not see the. git directory, you need to unhide the file, and then copy the. git, readme.md file to the project you requested to submit.
This is our cloned project.
This is the project we need to submit.
Submit Project to GitHub:
Use the command in turn: Git Add.
Using the command git commit-m "commit instructions"
Re-use command: Git push Origin master
Now that you have completed the project submission, log in to GitHub and see that there is already project engineering on GitHub ~ ~ ~
Upload locally created projects to GitHub using the Git tool