Practical Git via GitExtensions
  • Git - a Distributed System
  • Bare Minimal Configurations
  • Creating a New Branch
  • Making a Commit
    • Adding only a portion of a file
    • Commit Message
    • Cherry-pick
    • Revert
  • Rewriting History
    • Rewording the Last Commit
    • Rewording Commit Message in Middle
    • Editing the Last Commit
    • Squashing Last Few Commits
    • Squashing Commits in Middle
    • Spliting Commit into Multiple
    • Removing a Commit
    • Pushing after Rewriting History
  • Lost and Found
  • Comparing Commits or Branches
  • Checking out a Branch into Another Folder
  • Blaming History
    • Blame
    • Bisect
  • Disabling Auto Tracking Branch
  • Line Ending
  • Ignore Unwanted Files
Powered by GitBook
On this page

Was this helpful?

Making a Commit

PreviousCreating a New BranchNextAdding only a portion of a file

Last updated 6 years ago

Was this helpful?

See

There are two steps to commit our changes. First, we decide which files/lines to be in the commit by staging them. Second, we give the commit a message to commit.

Note: Unlike other source control management systems, git optimisitically allows us change files without locking it (it is a distributed source control management system and therefore never knows or cares who is changing a file on another computer).

Command line:

git add awesome_changes.txt # add the file to staging area
git commit

https://git-extensions-documentation.readthedocs.io/en/latest/commit.html