# HG changeset patch # User Oleksandr Gavenko # Date 1486935265 -7200 # Node ID 7f6ce6b18a0c806337b86dc94123ef8646b7a69e # Parent 0d9703b4a42832a4a21ba58856cdaa4826a575e6 Remove unnecessary details. diff -r 0d9703b4a428 -r 7f6ce6b18a0c git.rst --- a/git.rst Sun Feb 12 23:30:56 2017 +0200 +++ b/git.rst Sun Feb 12 23:34:25 2017 +0200 @@ -115,32 +115,19 @@ $ git reset badfile -Doing changes. -============== -:: +Committing changes +================== - $ printf "clean:\nrm $(wildcard *.o)\n" >>Makefile +Individual file:: + + $ $EDITOR Makefile + $ git add Makefile $ git diff - diff --git a/Makefile b/Makefile - index e84f7e9..cd2438a 100644 - --- a/Makefile - +++ b/Makefile - @@ -1,2 +1,5 @@ - all: - @echo XXX - exit 1 - + - +clean: - + rm -f *.o - $ git add Makefile - $ git commit -m "Added clean target." - Created commit 11272b9: Added clean target. - 1 files changed, 1 insertions(+), 0 deletions(-) - create mode 100644 file + $ git commit -m "..." -or just:: +Commit all changed and previously manages files:: - $ git commit -a -m "Added clean target." + $ git commit -a -m "...." git analog of 'hg incoming'. ============================