方式一:
先將指定文件添加到 暫存區,然後提交所有 暫存區 的文件
git add index.html about.html
git commit -m '我提交了所有 暫存區 的文件'
方式二:
此方式可以提交分別來自不同地方的文件,比如 工作區的 和 暫存區的
git commit -o index.html about.html -m '我同時提交了 工作區的index.html 和 暫存區的about.html 這兩個文件'
方式一:
先將指定文件添加到 暫存區,然後提交所有 暫存區 的文件
git add index.html about.html
git commit -m '我提交了所有 暫存區 的文件'
方式二:
此方式可以提交分別來自不同地方的文件,比如 工作區的 和 暫存區的
git commit -o index.html about.html -m '我同時提交了 工作區的index.html 和 暫存區的about.html 這兩個文件'
一: 安裝openssl和pcre yum -y install pcre-devel openssl openssl-devel 安裝git yum install git -y
取消跟蹤文件&&重新跟蹤 如果修改了.gitignore文件,那麼需要進行如下操作: git rm -rf --cached . git add ./*
創建分支並且拉去遠程同步分支的過程中出現該異常: fatal: 'idea-line-02' is not a commit and a branch 'idea-line