Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Git commit

# The set of commands that were used in the `Git Commit` video

# Add the file to git's staging area, so we can commit it
git add story.txt

# Check the status of the repository
git status

# Commit the changes
git commit -m "Initial commit"

# Check the status of the repository after the commit
git status

# Update the `story.txt` file
nano story.txt

# Check the status again
git status

# Add the file to the staging area
git add story.txt

# Commit
git commit -m "Expand story"

# Ensure the working tree is clean
git status
 
PREVIOUS NEXT
Tagged: #Git #commit
ADD COMMENT
Topic
Name
8+8 =