~/Desktop/test $ git clone https://github.com/codesche/codesche.github.io.git
Cloning into 'codesche.github.io'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (3/3), done.
~/Desktop/test $ ls
blog company testproject
codesche.github.io home
~/Desktop/test $ cd codesche.github.io
~/Desktop/test/codesche.github.io (main)$ ls
README.md
~/Desktop/test/codesche.github.io (main)$ rm -rf *
zsh: sure you want to delete the only file in /Users/haminsung/Desktop/test/codesche.github.io [yn]? y
~/Desktop/test/codesche.github.io (main)$ ls
~/Desktop/test/codesche.github.io (main)$ ls -al
total 0
drwxr-xr-x 3 haminsung staff 96 7 1 15:49 .
drwxr-xr-x 8 haminsung staff 256 7 1 15:49 ..
drwxr-xr-x 12 haminsung staff 384 7 1 15:49 .git
~/Desktop/test/codesche.github.io (main)$ ls
~/Desktop/test/codesche.github.io (main)$ git add .
~/Desktop/test/codesche.github.io (main)$ git commit -m "first commit"
[main 1d9d422] first commit
3 files changed, 95 insertions(+), 2 deletions(-)
delete mode 100644 README.md
create mode 100644 index.html
create mode 100644 style.css
~/Desktop/test/codesche.github.io (main)$ git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 10 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 1.10 KiB | 1.10 MiB/s, done.
Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/codesche/codesche.github.io.git
c7c3e08..1d9d422 main -> main
~/Desktop/test/codesche.github.io (main)$
Bash
복사