Answers for "git commits"

16

how to see all commits in git

$ git log --pretty=format:"%h - %an, %ar : %s"
ca82a6d - Scott Chacon, 6 years ago : Change version number
085bb3b - Scott Chacon, 6 years ago : Remove unnecessary test
a11bef0 - Scott Chacon, 6 years ago : Initial commit
Posted by: Guest on July-31-2020
9

git commit

git add index.html css/styles.css
git add .
git commit -m "Change titles and styling on homepage"
Posted by: Guest on August-28-2020
1

to see all after commit in local repository in git

git log --name-only
Posted by: Guest on June-13-2020
0

git commit

//now commit the code
git commit -m "anyMessageYouWantToWrite"
Posted by: Guest on December-29-2020

Browse Popular Code Answers by Language