What are the common commands of Git in python
This article mainly introduces what are the common commands of Git in python, which can be used for reference by interested friends. I hope you can learn a lot after reading this article.
1 、 Git fetch
Download all changes to the remote warehouse.
You can download the remote warehouse to a temporary branch and merge it as needed.
2. Git fetch and git merge
Can be seen as a decomposing action of the git pull command.
3 、 Git diff
It is often used to compare the differences between a workspace and a warehouse, a staging area and a warehouse, and between the two branches.
4 、 Git stash
Put the changes to the current workspace and staging area in the temporary area to make the workspace clean. This command applies to scenarios where the task at hand has not yet been submitted, but suddenly there is a more urgent task (such as online bug that needs to be modified) that needs to be dealt with.
5 、 Git reset
Return to the specified version. This command has three main parameters.
6 、 Git cherry-pick
Select a branch single commit and introduce it into your current branch as a new submission.
Git revert
Withdraw the submission information.
Git tag
Often used to view or add tags.
Example
Git stashgit stash listgit stash pop thank you for reading this article carefully. I hope the article "what are the common commands of Git in python" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!