xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

git add command All In One

git add command All In One

https://git-scm.com/docs/git-add

git add . VS git add -A

# 不包含上一层级, 仅包含本层级和子层级的所有文件 ✅
$ git add .

# 包含上一层级,也包含本层级和子层级的所有文件 ✅🚀
$ git add -A
# 等价于
$ git add --all

git help add

$ git --help
$ git help add
       -u, --update
           Update the index just where it already has an entry matching
           <pathspec>. This removes as well as modifies index entries to match
           the working tree, but adds no new files.

           If no <pathspec> is given when -u option is used, all tracked files
           in the entire working tree are updated (old versions of Git used to
           limit the update to the current directory and its subdirectories).
       -A, --all, --no-ignore-removal
           Update the index not only where the working tree has a file
           matching <pathspec> but also where the index already has an entry.
           This adds, modifies, and removes index entries to match the working
           tree.

           If no <pathspec> is given when -A option is used, all files in the
           entire working tree are updated (old versions of Git used to limit
           the update to the current directory and its subdirectories).

GitHub Git

https://github.com/git-guides/git-add

https://github.com/git-guides/git-add#deciding-to-stage-all-files

Code School Git

https://github.com/xgqfrms-GitHub/Docker/tree/master/Tutorials

git versions

$  git --version
git version 2.37.1 (Apple Git-137.1)

git v1.x vs git v2.x

git config & color.ui

$ git config --global user.name "xgqfrms"

$  git config --global user.email xgqfrms@xgqfrms.xyz
# color.ui
$ git config --global color.ui true

image

Code Scholl & Gregg Pollack

pdf

https://www.pluralsight.com/courses/code-school-git-real

http://courseware.codeschool.com.s3.amazonaws.com/git_real_slides.pdf

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

refs

https://git.xgqfrms.xyz/git-add/git_real_slides.pdf

https://github.com/xgqfrms/git/blob/master/git-add/git_real_slides.pdf



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2023-01-09 15:54  xgqfrms  阅读(40)  评论(1编辑  收藏  举报