Horje
git commit Code Example
git revert commit
# Reset the index and working tree to the desired tree
# Ensure you have no uncommitted changes that you want to keep
git reset --hard 56e05fced

# Move the branch pointer back to the previous HEAD
git reset --soft HEAD@{1}

git commit -m "Reverting to the state of the project at f414f31"
Commit in git
git commit -m "Initial Commit"
git commit
git init
git add --all
git commit -m "Initial Commit"
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
git commit
git commit 
optional arguments:
-a: commit all changes(not recomended if you're on windows and are not using vim, windows make .swp files, must be very careful)
-m: to add a message, e.g.: git commit -m "message here"
Source: git-scm.com
git commit
$ git commit -m "Story 182: fix benchmarks for speed"
[master 463dc4f] Story 182: fix benchmarks for speed
 2 files changed, 2 insertions(+)
 create mode 100644 README
Source: git-scm.com




Shell

Related
how to push code to bitbucket Code Example how to push code to bitbucket Code Example
how to open appimage in linux Code Example how to open appimage in linux Code Example
what is curl  Code Example what is curl Code Example
git global settings ssh Code Example git global settings ssh Code Example
git https to ssh Code Example git https to ssh Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9