G:\mygitea\GitLearn $ tree Folder PATH listing for volume 新加卷 Volume serial number is 406B-D0C3 G:. ├───learn01 # git仓库所在目录 └───material01 # Demo01所需要的文件所在文件夹 ├───images ├───js └───styles
G:\mygitea\GitLearn\learn01 master ± $ vim Readme.md
G:\mygitea\GitLearn\learn01 master ± $ ls Readme.md
G:\mygitea\GitLearn\learn01 master ± $ git add . warning: LF will be replaced by CRLF in Readme.md. The file will have its original line endings in your working directory
G:\mygitea\GitLearn\learn01 master ± $ git status On branch master Untracked files: (use "git add <file>..." to include in what will be committed) images/ index.html
nothing added to commit but untracked files present (use "git add" to track)
G:\mygitea\GitLearn\learn01 master ± $ git add . warning: LF will be replaced by CRLF in index.html. The file will have its original line endings in your working directory
G:\mygitea\GitLearn\learn01 master ± $ git status On branch master Changes to be committed: (use "git restore --staged <file>..." to unstage) new file: images/git-logo.png new file: index.html
G:\mygitea\GitLearn\learn01 master ± $ tree /f Folder PATH listing for volume 新加卷 Volume serial number is 406B-D0C3 G:. │ index.html │ Readme.md │ ├───images │ git-logo.png │ └───styles style.css
G:\mygitea\GitLearn\learn01 master ± $ git status On branch master Untracked files: (use "git add <file>..." to include in what will be committed) styles/
nothing added to commit but untracked files present (use "git add" to track)
G:\mygitea\GitLearn\learn01 master ± $ git add . warning: LF will be replaced by CRLF in styles/style.css. The file will have its original line endings in your working directory
G:\mygitea\GitLearn\learn01 master ± $ tree /f Folder PATH listing for volume 新加卷 Volume serial number is 406B-D0C3 G:. │ index.html │ Readme.md │ ├───images │ git-logo.png │ ├───js │ script.js │ └───styles style.css
G:\mygitea\GitLearn\learn01 master ± $ git add . warning: LF will be replaced by CRLF in js/script.js. The file will have its original line endings in your working directory
G:\mygitea\GitLearn\learn01 master ± $ git status On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: index.html modified: styles/style.css
no changes added to commit (use "git add" and/or "git commit -a")