1.マスターに引っ張っていたかどうかはどうすればわかりますか?私がしたのは「gitpull」だけです。
コマンド自体は次のように機能します。
git pull [options] [<repository> [<refspec>…]]
デフォルトでは、現在のブランチを指します。を使用してブランチを確認できます
git branch -a
これにより、たとえば、ローカルブランチとリモートブランチが一覧表示されます(---
より明確にするために、ローカルブランチとリモートブランチの間にaを追加しました)
*master
foo
bar
baz
---
origin/HEAD -> origin/master
origin/deploy
origin/foo
origin/master
origin/bar
remote2/foo
remote2/baz
次に、1つのリモートリポジトリを見ると、参照しているものがわかります。
git remote show origin
次のように一覧表示されます。
* remote origin
Fetch URL: ssh://git@git.example.com:12345/username/somerepo.git
Push URL: ssh://git@git.example.com:12345/username/somerepo.git
HEAD branch: master
Remote branches:
foo tracked
master tracked
Local refs configured for 'git push':
foo pushes to foo (up to date)
master pushes to master (fast-forwardable)
したがって、どこから引っ張ってどこにプッシュするかを確認するのは非常に簡単です。
3.特定のファイルの詳細の変更を確認するにはどうすればよいですか?
4.最後のgitpullによるサマリー出力の変化をもう一度確認するにはどうすればよいですか?
最も簡単でエレガントな方法(imo)は次のとおりです。
git diff --stat master@{1}..master --dirstat=cumulative,files
これにより、最後のプルと現在の作業状態の間の変更に関する2つのブロックの情報が得られます。出力例(わかりやすくするために、と出力---
の間に分周器としてを追加しました):--stat
--dirstat
mu-plugins/media_att_count.php | 0
mu-plugins/phpinfo.php | 0
mu-plugins/template_debug.php | 0
themes/dev/archive.php | 0
themes/dev/category.php | 42 ++++++++++++++++++
.../page_templates/foo_template.php | 0
themes/dev/style.css | 0
themes/dev/tag.php | 44 +++++++++++++++++++
themes/dev/taxonomy-post_format.php | 41 +++++++++++++++++
themes/dev/template_parts/bar_template.php | 0
themes/someproject/template_wrappers/loop_foo.php | 51 ++++++++++++++++++++++
---
11 files changed, 178 insertions(+)
71.3% themes/dev/
28.6% themes/someproject/template_wrappers/
100.0% themes/
27.2% mu-plugins/
9.0% themes/dev/page_templates/
9.0% themes/dev/template_parts/
63.6% themes/dev/
9.0% themes/someproject/template_wrappers/
72.7% themes/