At first, let’s look at a common example for using git.
Example
|
|
Reference
Create an empty Git repository or reinitialize an existing one
|
|
Add file contents to the index
|
|
Show the working tree status
|
|
Record changes to the repository
|
|
Show changes between commits, commit and working tree, etc
|
|
Show commit logs
|
|
Reset current HEAD to the specified state
|
|
or1$ git reset —-hard commit_id
See and Manage the history of referance logs
|
|
Restore working tree files that are modified or deleted
|
|
Remove files from the working tree and from the index
|
|
Associate a remote repository
|
|
Add upstream, push the current branch
|
|