こんにちは。二つのPC, AとNで作業していて、Nで変更した内容をgithubにpushしたのをAでpullして作業して、またNで作業するときにはNでpullして進めたらpushして...と運用しています。
ふとpullする前に今のlocalとremoteの差分がどれくらいあるのかと出そうとしたら、diff, diff HEAD, diff filename, diff remote...どれをやっても出ません。
pushする前はstatusだとわかりますがpullする前は何で確認すれば良いのでしょうか?
よろしくお願いします
terminal
1Apple-no-MacBook:NotCloud apple$ cd Canvas/ 2Apple-no-MacBook:Canvas apple$ git status 3On branch master 4Your branch is up to date with 'origin/master'. 5 6nothing to commit, working tree clean 7Apple-no-MacBook:Canvas apple$ git diff 8Apple-no-MacBook:Canvas apple$ git fetch 9remote: Enumerating objects: 10, done. 10remote: Counting objects: 100% (10/10), done. 11remote: Compressing objects: 100% (4/4), done. 12remote: Total 7 (delta 5), reused 5 (delta 3), pack-reused 0 13Unpacking objects: 100% (7/7), done. 14From https://github.com/KaedeAPK/Canvas 15 4b936f1..cfd3cb3 master -> origin/master 16Apple-no-MacBook:Canvas apple$ git diff origin master 17diff --git a/_gridLine05.html b/_gridLine05.html 18index 5b1cbdb..e3a7539 100644 19--- a/_gridLine05.html 20+++ b/_gridLine05.html 21@@ -13,8 +13,10 @@ 22 <body> 23 <canvas></canvas> 24 <script> 25- // updated 12-06 26- // from (0,0) 27+ // Up dated 11/02 28+ // Background: glay by CSS 29+ // This is Canvas Grid Line for drawing 30+ 31 // Lightgreen by every 500px line 32 // white line by 100px line 33 // glay by 50px. 34@@ -25,35 +27,44 @@ 35 var c = canvas.getContext('2d'); 36 var midX = endX/2; 37 var midY = endY/2; 38- 39+ 40 function gridLine() { 41 c.lineWidth = 1; 42 function strokeGrid() { 43 c.beginPath(); 44 c.moveTo(i*50, 0); 45- c.lineTo(i*50, endY); 46: 47
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/07 05:10