Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the common commands in git?

Shulou Source: shulou.com Published: 2022-06-02 00:12:53 10月03日 Update

Git commonly used command specific what, I believe that many inexperienced people are helpless about this, this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

git help tutorial Get general help instructions

01

-

Create a local workspace

init Creates an empty Git library or initializes the current library again

clone clone a repository into a new working directory

02

-

native library

git help everyday for general help with local libraries

add Add file contents to index

mv move or rename files, directories, symlink

reset Reset the file header (HEAD) to a specific version number

rm removes files from the working directory tree and index

03

-

historical version

git help revisions, get general help for modified versions

bisect uses binary search to find submissions that introduce a bug

grep prints a list of rows and columns matching a particular pattern

log Displays the logs submitted

showDisplays various types of objects

status Shows the status of the working tree

04

-

branch management

branch display, create, delete branches

checkout Swap branches; restore files in the working tree

commit commits changes to the repository

diff shows differences between commit versions, commit and worktree versions, etc.

merge Combine 2 or more developments History

rebase Forward-port local commits to the updated upstream head

tag Create, list, delete or verify a tag object signed with GPG

05

-

multi-person collaboration

git help workflows Get general help

fetch downloads objects and references from another library

pull Pull from another repository or local branch to the current repository or branch

push updates local repository changes to remote repository

After reading the above content, do you know what specific methods git commonly used commands have? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!

Tags: Version work branch file general help content directory command common history object method more problem different helpless to this end between warehouse Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Technology Huawei vpn Apple