Browse Source

New revision.

- Add sample file "a".

- New version of the script.
testuser1 2 years ago
parent
commit
67e795cd02
2 changed files with 17 additions and 1 deletions
  1. 1 0
      a
  2. 16 1
      main.sh

+ 1 - 0
a

@@ -0,0 +1 @@
+123321

+ 16 - 1
main.sh

@@ -1,2 +1,17 @@
-# Initialize git repository
+# Initialize git repository.
 git init
+# Add file.
+git add main.sh
+# Make commit.
+git commit --edit
+# Modify.
+cat > a << EOF
+hello!
+EOF
+# Add to staged area.
+git add a
+# Show cached area.
+git diff --cached
+# Commit.
+git commit --edit
+