Get ready
- 1. Have a GitHub account
- 2. Installation of Tortoisegit (small turtle)
Process one, build a new warehouse on GitHub
- Make a good warehouse name, fill in the description, select Java in the Add. Gitgnore (write according to your own needs)
- Make a copy of the address of the warehouse after you've built it (use it later)
Ii. Creating a Repository (warehouse) on disk
- Right-click Git to create a repository here
Look again at the current folder, there are already green hooks.
The following is a hidden. Git folder
Third, set
- Right-click, Tortorisegit---set
- Fill in git first. This point "global" fill out (the information here seems to be useless, before I set a, now I replaced the following information)
- Then fill in the appropriate information at the far end. Note: The origin of this place at present I also look at others so fill this, do not know what meaning, also do not know whether can change . The URL is just copied; the push URL does not have to be written; Putty choose the PPK file to save the key.
Click Add/Save to pop out of this dialog point "no"
Iv. Pull
Note: What is pull? Why pull? --and I don't know, yes.
- Right-click,toroisegit--> Pull
V. Edit the Readme.md file
Note: I don't know what to do with this step.
- Fill in the following content
Vi. Submission of
- Right-click Git commit, "master" ...
- Write a comment and tick the file you want to submit
Seven, push to send
- Right-click, tortoisegit and push
- Then pop up the dialog box to fill in the GitHub account and password, and then fill in, and then click OK.
To the GitHub site, you can see that the local repository Ssh_demo is synchronized.
Viii. Uploading projects
What if you want to put a project into this warehouse and upload it to GitHub? Just copy the project to this repository, then submit it and pull it.
Note: This step can of course be submitted together in the sixth step and pushed to GitHub.
Take a look at the GitHub website.
Use Tortoisegit (Little Turtle) to upload items to the GitHub website