SAMSUNG@DESKTOP-U4636R1 MINGW64 ~
$ git config --global user.name
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~
$ git config --global user.email
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~
$ git config --global core.autocrlf true
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~
$ git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=true
pull.rebase=false
credential.helper=manager
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
user.name=DennyKim111
user.email=
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~
$ ^C
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~
$ git config user.email
0111danye@gmail.com
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~
$ cd Documents
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents
$ mkdir git_ws
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents
$ cd git_ws
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws
$ mkdir test_project
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws
$ cd test _project
bash: cd: too many arguments
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws
$ cd test_project
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project
$ git init
Initialized empty Git repository in C:/Users/SAMSUNG/Documents/git_ws/test_project/.git/
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project (master)
$ ls -all
total 4
drwxr-xr-x 1 SAMSUNG 197609 0 Jun 5 15:56 ./
drwxr-xr-x 1 SAMSUNG 197609 0 Jun 5 15:51 ../
drwxr-xr-x 1 SAMSUNG 197609 0 Jun 5 15:56 .git/
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project (master)
$ touch test.txt
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project (master)
$ ls -all
total 4
drwxr-xr-x 1 SAMSUNG 197609 0 Jun 5 16:04 ./
drwxr-xr-x 1 SAMSUNG 197609 0 Jun 5 15:51 ../
drwxr-xr-x 1 SAMSUNG 197609 0 Jun 5 15:56 .git/
-rw-r--r-- 1 SAMSUNG 197609 0 Jun 5 16:04 test.txt
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project (master)
$ git status
On branch master
No commits yet
Untracked files:
(use "git add ..." to include in what will be committed)
test.txt
nothing added to commit but untracked files present (use "git add" to track)
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project (master)
$ git add test.txt
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project (master)
$ git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached ..." to unstage)
new file: test.txt
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project (master)
$ git commit -m 'first commit' test.txt
[master (root-commit) 3764d1f] first commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 test.txt
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project (master)
$ git status
On branch master
nothing to commit, working tree clean
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project (master)
$
0111danye
7일 전
내 컴퓨터 test_project와 깃 헙 페이지의 test_project를 연결
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project (master)
$ git remote add origin https://github.com/https://github.com/DennyKim111/test_project.git
SAMSUNG@DESKTOP-U4636R1 MINGW64 ~/Documents/git_ws/test_project (master)
$ git remote -v
origin https://github.com/https://github.com/DennyKim111/test_project.git (fetch)
origin https://github.com/https://github.com/DennyKim111/test_project.git (push) (편집됨)
0111danye
7일 전
git pull 은 허브에서 내 로컬 레포지토리로 갖고 오는 것 (편집됨)
0111danye
7일 전
git init은 해당 파일을 git이 관리하는 로컬 레포지토리로 만드는 기능을 한다.
0111danye
7일 전
git add - stage 영역에 올리기 / 인덱스에 추가
git commit -m "!@#%!" - head에 올리기 (편집됨)
0111danye
7일 전
git hub에서 레포지토리를 만들고 git push origin master 하면 로컬에서 허브로 이동 (편집됨)