创建提交,需要我们提交东西到暂存区(git add),然后: $ git commit -m "Initial commit." 这就创建了一次提交,-m “Initial commit.
基于8个网页-相关网页
...我们新增或者修改了一个文件在添加到暂存区之前,我们使用git status命令的时候,系统便会提示我们,是要git add(添加到暂存区)还是git checkout -- 基于4个网页-相关网页
git add README 加入修改列表 ; 再添加README文件到暂存区
git add remote 添加远程仓库
git add -u 只新增修改过的档案 ; 将本地有改动的文件标记到暂存区
git add -A 将工作区的所有改动及新增文件添加到暂存区
git add xxx 添加某个文件
git add file 将文件或者路径添加到暂存区
git add AUTHOR 添加AUTHOR文件到暂存区
git add NewFile 暂存到暂存区
git add filenames 添加准备上传的文件
Add a file: touch foo.txt; git add foo.txt.
添加文件:touch foo . txt; git add foo . txt。
You will still have to commit this file to actually add its contents to a Git repository.
您必须提交该文件,以向git存储库添加其内容。
If you had added multiple files, you could continue listing them after the git-add command on a single line, as you need not add them one at a time.
如果您添加了多个文件,可以在同一行中的git - add命令后面列出这些文件,不过您也不必一次将它们全部添加到仓库中去。
应用推荐