Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1009 Bytes

commit.md

File metadata and controls

43 lines (30 loc) · 1009 Bytes

Commit command


Output from commit command have some color indications:
  • [master 815567] <Commit text> - Green - Initial commit
  • [master 815567] <Commit text> - Yellow - Child commit
  • [master 815567] <Commit text> - Red - Hard reset commit

Base commit example

~ python vcs.py commit -t "Initial commit"
[master 815567] Initial commit
 1 have been objects created

Commit with remove commits history

~ python vcs.py commit -t "Hard reset commit" --hard
[main 9c4138] Hard reset commit
 1 have been objects created

Help message

vcs commit -t "<Your commit text>" - Create commit with text
vcs commit -t "<Your commit text>" - Create commit, and remove all previous commits
vcs commit -h | --help - This help

Author: Konstantin-create
Licence: GNU General Public License v3.0