אינטרנט ישראל
  • אודות
  • לכל המאמרים באתר
  • הערוץ בטלגרם
  • הערוץ בווטסאפ
  • טוויטר
  • פייסבוק
  • לינקדאין
  • הספרים שלי ללימוד תכנות
  • אודות
  • לכל המאמרים באתר
  • הערוץ בטלגרם
  • הערוץ בווטסאפ
  • טוויטר
  • פייסבוק
  • לינקדאין
  • הספרים שלי ללימוד תכנות
ראשי » מדריכים » Git » לבטל דברים בגיט מקומי » git amend

git amend

$ git status
On branch master
Changes not staged for commit:
(use "git add …" to update what will be committed)
(use "git checkout —
…" to discard changes in working directory)

modified: index.html

no changes added to commit (use "git add" and/or "git commit -a")

barzik@BARZIK2 MINGW64 ~/test/examplegit (master)
$ git add .

barzik@BARZIK2 MINGW64 ~/test/examplegit (master)
$ git commit –amend
[master 76214b8] some commit
Date: Fri Mar 25 11:26:32 2016 +0300
Committer: Bar Zik
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 you@example.com

After doing this, you may fix the identity used for this commit with:

git commit –amend –reset-author

1 file changed, 1 insertion(+), 1 deletion(-)

barzik@BARZIK2 MINGW64 ~/test/examplegit (master)
$ git status
On branch master
nothing to commit, working directory clean

barzik@BARZIK2 MINGW64 ~/test/examplegit (master)
$ git log
commit 76214b87a6a9fda416e0fe1e0c4e302872a22bef
Author: Bar Zik
Date: Fri Mar 25 11:26:32 2016 +0300

השארת תגובה

ביטול

ללמוד ג'אווהסקריפט בעברית

הצטרפו לאלפי הקוראים של הספרים שלי שמלמדים תכנות מעשי בקלות ובעברית

  • מדריכים
    • מדריך ל-ESP32 לילדים ולהורים מאפס
    • טייפסקריפט
    • ריאקט
    • ECMAScript 6
    • ES20XX
    • מיקרו בקרים
    • רספברי פיי
    • Node.js
    • Express
    • Babel
    • docker
    • MongoDB
    • Git
    • לימוד MySQL
    • SASS
    • jQuery
  • פיתוח אינטרנט
    • פתרונות ומאמרים על פיתוח אינטרנט
      • יסודות בתכנות
    • נגישות אינטרנט
  • חדשות אינטרנט
  • מידע כללי על אינטרנט
    • רשת האינטרנט
    • בניית אתרי אינטרנט

כל הזכויות שמורות לרן בר-זיק ולאינטרנט ישראל | מדיניות הפרטיות של אתר אינטרנט ישראל | אתר אינטרנט ישראל נגיש לפי תקן WCAG 2.0 AA | הצהרת הנגישות של האתר | אבטחת מידע ודיווח על בעיית אבטחת מידע

גלילה לראש העמוד