Gitバージョンライブラリへのファイルの追加
1410 ワード
一、テストファイルを作成する(git_test_file)
[root@git git_test]# echo fuchao >git_test_file
二、テストファイルをバージョンライブラリの一時保存領域に追加する
[root@git git_test]# git add git_test_file
三、一時保存領域にあるファイルの表示
[root@git git_test]# git status
On branch master
[root@git git_test]# echo fuchao >git_test_file
二、テストファイルをバージョンライブラリの一時保存領域に追加する
[root@git git_test]# git add git_test_file
三、一時保存領域にあるファイルの表示
[root@git git_test]# git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached ..." to unstage)
new file: git_test_file
[root@git git_test]#
四、バージョンライブラリにファイルを追加する
[root@git git_test]# git commit -m "Submission instructions" \
--author="fuchao [email protected]「コマンド出力:[master(root-commit)9 cb 4509]Submission instructions Author:[email protected] Committer: root Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email [email protected]
If the identity used for this commit is wrong, you can fix it with:
git commit --amend --author='Your Name '
1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 git_test_file [root@git git_test]#
ワークスペースのステータスの表示
[root@git git_test]# git status On branch master
nothing to commit (working directory clean)
ワークスペースは今きれいに見えます
Initial commit
Changes to be committed:
(use "git rm --cached ..." to unstage)
new file: git_test_file
[root@git git_test]#
四、バージョンライブラリにファイルを追加する
[root@git git_test]# git commit -m "Submission instructions" \
--author="fuchao [email protected]「コマンド出力:[master(root-commit)9 cb 4509]Submission instructions Author:[email protected] Committer: root Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email [email protected]
If the identity used for this commit is wrong, you can fix it with:
git commit --amend --author='Your Name '
1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 git_test_file [root@git git_test]#
ワークスペースのステータスの表示
[root@git git_test]# git status On branch master
nothing to commit (working directory clean)
ワークスペースは今きれいに見えます
Changes to be committed:
(use "git rm --cached ..." to unstage)
new file: git_test_file
[root@git git_test]#
四、バージョンライブラリにファイルを追加する
[root@git git_test]# git commit -m "Submission instructions" \
--author="fuchao [email protected]「コマンド出力:[master(root-commit)9 cb 4509]Submission instructions Author:[email protected] Committer: root Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email [email protected]
If the identity used for this commit is wrong, you can fix it with:
git commit --amend --author='Your Name '
1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 git_test_file [root@git git_test]#
ワークスペースのステータスの表示
[root@git git_test]# git status On branch master
nothing to commit (working directory clean)
ワークスペースは今きれいに見えます
new file: git_test_file
[root@git git_test]#
四、バージョンライブラリにファイルを追加する
[root@git git_test]# git commit -m "Submission instructions" \
--author="fuchao [email protected]「コマンド出力:[master(root-commit)9 cb 4509]Submission instructions Author:[email protected] Committer: root Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email [email protected]
If the identity used for this commit is wrong, you can fix it with:
git commit --amend --author='Your Name '
1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 git_test_file [root@git git_test]#
ワークスペースのステータスの表示
[root@git git_test]# git status On branch master
nothing to commit (working directory clean)
ワークスペースは今きれいに見えます
[root@git git_test]#
四、バージョンライブラリにファイルを追加する
[root@git git_test]# git commit -m "Submission instructions" \
--author="fuchao [email protected]「コマンド出力:[master(root-commit)9 cb 4509]Submission instructions Author:[email protected] Committer: root Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email [email protected]
If the identity used for this commit is wrong, you can fix it with:
git commit --amend --author='Your Name '
1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 git_test_file [root@git git_test]#
ワークスペースのステータスの表示
[root@git git_test]# git status On branch master
nothing to commit (working directory clean)
ワークスペースは今きれいに見えます
nothing to commit (working directory clean)
ワークスペースは今きれいに見えます