git add git commit code example
Example 1: git change git commit date
Set GIT_COMMITTER_DATE="Wed Sep 23 9:40 2015 +0200" git commit --amend --date "Wed Sep 23 9:40 2015 +0200"
Example 2: git commit
git add index.html css/styles.css
git add .
git commit -m "Change titles and styling on homepage"
Example 3: git checkout commit
git checkout <commit>
Example 4: git add
//to add a single file
git add <FILE_NAME>
//to add all changed files
git add -A
Example 5: git add command
//to add file to the repository
1. git add youFilePath
//if you want to add all file then
2. git add .
Example 6: how to commit changes in git command
git commit -a