GitHub open source code base and version control system, can host a variety of git libraries, and provide a Web Access interface. Many friends like to host personal blogs or small projects on GitHub, which is both convenient and simple.
Here's how to upload a local file to GitHub and take the window System client as an example.
Tools/Materials
- Git
- Gitbug
- Sample file: Blog
Method/Step
Install the Git tool on the Windows system client.
Note: How to install the Git tool is not introduced here, if you need to know the online search installation introduction.
Add a ". git file" to the "local file" for git management.
Go to the Local folder, right click-click Git Init here-to generate the. git folder.
Create a warehouse on GitHub for storage management local files, example: Blog.
Click the plus sign (create New)--new repository to create a blog repository based on the boot.
Remotely add a blog repository on GitHub.
1) Go to the Local folder-right click on the mouse-git gui-remote (remote)-add ...
2) Get the address of the blog repository in GitHub.
3) Fill in the name and location in the Add Remote window.
Name: Blog
Location: Paste the Blog repository path you just copied
Finally click "Add".
Submit the contents of the local file as "cached changes" to the master branch of Git management.
Upload the local file to GitHub.
Click on the git GUI interface "upload"--"upload" window randomly tick one or more transfer options--click "Upload"-Upload the blog process need to enter GitHub login account and password.
Check if the local file blog item is uploaded successfully on GitHub.
END
Precautions
- The. Git folder is a hidden item, allowing hidden item display to be visible in view.
- One or more transport options must be checked in the upload window, and the transfer option cannot be empty or the upload will fail.
How Git uploads folders