From 9470bba13eb8d211475edfbf60b2112d45e01518 Mon Sep 17 00:00:00 2001 From: vl4dd Date: Sat, 3 Apr 2021 12:25:09 +0200 Subject: [PATCH] fixing typo in git/readme.md 2 --- Git/readme.md | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/Git/readme.md b/Git/readme.md index 567a5bf..ca162b5 100644 --- a/Git/readme.md +++ b/Git/readme.md @@ -12,13 +12,11 @@ Git is a free and open source distributed version control system designed to han # Basic commands ## Git clone -# Clone repo located at **\** onto local machine. Original repo can be located on the local filesystem or on a remote machine via **HTTPS** or **SSH**. > git clone ## Git init -# Initialize an existing directory as a Git repository > git init @@ -28,13 +26,11 @@ Create empty Git repo in specified directory. Run with no arguments to initializ = ## Git status -# List which files are staged, unstaged, and untracked. > $ git status ## Git config --global name & email -# Must be identifiable for credit when review version history. > $ 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 add -# Stage all changes in **\** for the next commit. Replace **\** with a **\** to change a specific file. > $ git add readme.md image.jpg ## Git commit -# Commit your staged content as a new commit snapshot > $ 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 diff +Show unstaged changes between your index and working directory. + +> $ git diff ## Git log -# Show all commits in the current branch’s history > $ 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](img/git_log.PNG) -= ## 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 @@ -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. ![tig](img/tig.PNG) -= - -## Git diff -# -Show unstaged changes between your index and working directory. - -> $ git diff - # # SHARE & UPDATE #