Let's start with a brief description of Git's code management.
I'm using github for Windows, and the website is too slow to download, so I used an offline installer package. After installation there will be GitHub and Gitshell two software, including GitHub with a graphical interface, Gitshell command line control interface, after installation as follows:
Use process
If> The following procedures are used in the Gtihub graphical interface
After reviewing some tutorials and using them yourself, summarize the approximate idea:
- First, you can create your own code warehouse on the GitHub site, which is assumed to be a code warehouse R1(which can also be created directly from the GitHub graphical interface) as follows:
- You can then use the clone function to copy the code repository locally, that is, to generate the same R2 as R1, which is called the branch(branching idea), in the clone can choose the corresponding local folder, You can then see what has been clone on the list:
- Put the file you want to upload into the previously selected folder, this time open GitHub GUI, (each file changes can see the commit change button) can see the new commit commit option, this step commit to the local code warehouse R2, At the same time, you can comment on the modified place
- Confirm that you submit the code is correct, you can sync to the Code warehousevia button sync R1, this step is a branch merge, should be push, the first branch by default is master, if you need more people to manage the project, and do not interfere with each other, you can create a new branch, Merge when the final confirmation is correct.
- After the upload is successful, you can view it on GitHub.
Experience
- Branch is easy to use. Management and development of team projects
- Fork function facilitates learning to apply someone else's code
- Well, next time try it with the command line, or I'm too low.
This project code upload GitHub code library address: Click to go
Experience with Git for code management--github for Windows