Small knowledge, big challenge! This article is participating in the creation activity of “Essential Tips for Programmers”.
WangScaler: A writer with heart.
Declaration: uneducated, if there is a mistake, kindly correct.
Your projects are hosted on Github, GitLab, Gitee, etc., all of which require Git for version control. Git command there are many, beginners may not be easy to use, today to recommend a visual Git tool.
Use the premise
You need to install Git before you can use this visual tool
Clone an existing warehouse
Clone the remote repository locally.
- The Git command:
git clone https://gitee.com/WangScaler/test-git.git
-
TortoiseGit
Right click Git clone
Commit to local repository
Commit the modified code to the local repository.
- Git commit readme.en. md -m ‘update README ‘
-
TortoiseGit
Right click Git(Commit)
Push to remote repository
Push the local repository to the remote repository
-
Git push origin master
-
TortoiseGit
Right click push, or directly push after submission
Create a new branch
Create a branch of the development environment.
-
Git checkout -b dev
-
TortoiseGit
Right click to create a branch
Using the agent
We submitted the project to Github, and we all know that the network is slow, so this feature is essential.
- Git config –global http.proxy http://127.0.0.1:8080
-
TortoiseGit
Right set
Overall functional diagram
You can look at this diagram to see how these functions are conveniently presented in the form of functions.
conclusion
Git commands are too many, I will not introduce one, I will introduce a few of the most common commands, other commands, you can use my project to try, I after such a long time to use, conscience feel good, the only defect is that git commands gradually won’t use.
All in all, TortoiseGit is a visual tool for Git, which is easy to use. Or that sentence, good to use, used to know, if you are used to knock command can choose not to use, use this software will let you throw away their knowledge, it is not in vain to learn it.
Come all come, click “like” and then go!
Follow WangScaler and wish you a promotion, a raise and no bucket!