PS G:\DOC\GitDoc> git init Reinitialized existing Git repository in G:/DOC/GitDoc/.git/
git clone [ 连接 ] 克隆仓库
基本用法
git status 查看状态
1 2 3 4 5 6 7
PS G:\DOC\GitDoc> git status On branch master No commits yet Untracked files: (use "git add <file>..." to include in what will be committed) "Git\344\275\277\347\224\250\346\225\231\347\250\213.md" nothing added to commit but untracked files present (use "git add" to track)
git add . 将所有修改添加至暂存区
1
PS G:\DOC\GitDoc> git add .
git add [ File name ] 将指定文件添加至暂存区
1
PS G:\DOC\GitDoc> git add HowToUseGit.md
git commit -m “ 备注 “ 提交版本
1 2 3 4
PS G:\DOC\GitDoc> git commit -m "Contribute how to use Git tools." [master (root-commit) 3ccc1ff] Contribute how to use Git tools. 1 file changed, 55 insertions(+) create mode 100644 "Git\344\275\277\347\224\250\346\225\231\347\250\213.md"
+ +- ### git add .  将所有修改添加至暂存区 \ No newline at end of file
git status 查看当前状态
1 2 3 4 5 6 7 8 9
PS G:\DOC\GitDoc> git status On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory)
+PS G:\DOC\GitDoc> git init Reinitialized existing Git repository in G:/DOC/GitDoc/.git/
git clone [ 连接 ] &emsp; 克隆仓库
基本用法
git status 查看状态
PS G:\DOC\GitDoc> git status
1 2 3 4 5 6 7
+PS G:\DOC\GitDoc> git status On branch master No commits yet Untracked files: (use "git add <file>..." to include in what will be committed) "Git\344\275\277\347\224\250\346\225\231\347\250\213.md" nothing added to commit but untracked files present (use "git add" to track)
– ### git add . 将所有修改添加至暂存区
git add . 将所有修改添加至暂存区
1
+PS G:\DOC\GitDoc> git add .
git add [File name] 将指定文件添加至暂存区
1
+PS G:\DOC\GitDoc> git add HowToUseGit.md
git commit -m “备注“ 提交版本
1 2 3 4
+PS G:\DOC\GitDoc> git commit -m "Contribute how to use Git tools." +[master (root-commit) 3ccc1ff] Contribute how to use Git tools. + 1 file changed, 55 insertions(+) + create mode 100644 "Git\344\275\277\347\224\250\346\225\231\347\250\213.md"
+ +- ### git add .  将所有修改添加至暂存区 \ No newline at end of file
git status 查看当前状态
1 2 3 4 5 6 7 8 9
PS G:\DOC\GitDoc> git status On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory)