fixing typo in git/readme.md 2

This commit is contained in:
vl4dd 2021-04-03 12:25:09 +02:00
parent d7f8ccd881
commit 9470bba13e
1 changed files with 4 additions and 17 deletions

View File

@ -12,13 +12,11 @@ Git is a free and open source distributed version control system designed to han
# Basic commands # Basic commands
## Git clone ## Git clone
#
Clone repo located at **\<repo>** onto local machine. Original repo can be located on the local filesystem or on a remote machine via **HTTPS** or **SSH**. Clone repo located at **\<repo>** onto local machine. Original repo can be located on the local filesystem or on a remote machine via **HTTPS** or **SSH**.
> git clone <repo> > git clone <repo>
## Git init ## Git init
#
Initialize an existing directory as a Git repository Initialize an existing directory as a Git repository
> git init > git init
@ -28,13 +26,11 @@ Create empty Git repo in specified directory. Run with no arguments to initializ
= =
## Git status ## Git status
#
List which files are staged, unstaged, and untracked. List which files are staged, unstaged, and untracked.
> $ git status > $ git status
## Git config --global name & email ## Git config --global name & email
#
Must be identifiable for credit when review version history. Must be identifiable for credit when review version history.
> $ git config --global user.name “[firstname lastname]” > $ git config --global user.name “[firstname lastname]”
@ -42,13 +38,11 @@ Must be identifiable for credit when review version history.
> $ git config --global user.email “[valid-email]” > $ git config --global user.email “[valid-email]”
## Git add ## Git add
#
Stage all changes in **\<directory>** for the next commit. Replace **\<directory>** with a **\<file>** to change a specific file. Stage all changes in **\<directory>** for the next commit. Replace **\<directory>** with a **\<file>** to change a specific file.
> $ git add readme.md image.jpg > $ git add readme.md image.jpg
## Git commit ## Git commit
#
Commit your staged content as a new commit snapshot Commit your staged content as a new commit snapshot
> $ git commit -m "First Commit" > $ git commit -m "First Commit"
@ -57,9 +51,12 @@ After doing this, you may fix the identity used for this commit with:
> $ git commit --amend --reset-author > $ git commit --amend --reset-author
## Git diff
Show unstaged changes between your index and working directory.
> $ git diff
## Git log ## Git log
#
Show all commits in the current branchs history Show all commits in the current branchs history
> $ git log > $ git log
@ -71,10 +68,8 @@ The --graph option draws an ASCII graph representing the branch structure of the
> $ git log --graph --oneline --decorate > $ git log --graph --oneline --decorate
![git log](img/git_log.PNG) ![git log](img/git_log.PNG)
=
## Tig ## Tig
#
Tig allows you to browse changes in a Git repository and can additionally act as a pager for output of various Git commands. When used as a pager, it will display input from stdin and colorize it. Tig allows you to browse changes in a Git repository and can additionally act as a pager for output of various Git commands. When used as a pager, it will display input from stdin and colorize it.
> $ tig > $ tig
@ -82,14 +77,6 @@ Tig allows you to browse changes in a Git repository and can additionally act as
When browsing repositories, Tig uses the underlying Git commands to present the user with various views, such as summarized commit log and showing the commit with the log message, diffstat, and the diff. When browsing repositories, Tig uses the underlying Git commands to present the user with various views, such as summarized commit log and showing the commit with the log message, diffstat, and the diff.
![tig](img/tig.PNG) ![tig](img/tig.PNG)
=
## Git diff
#
Show unstaged changes between your index and working directory.
> $ git diff
# #
# SHARE & UPDATE # SHARE & UPDATE
# #