Type to git bash:
git log --follow filename
and to quit from list type:
q
Type to git bash:
git log --follow filename
and to quit from list type:
q
rm -f ./.git/index.lock
function validateDate($date_string) { $date_value = DateTime::createFromFormat('Y-m-d', $date_string); return $date_value && $date_value->format('Y-m-d') === $date_string; }
var_dump( validateDate('2016-13-10')); // false var_dump( validateDate('20160-13-10')); // false var_dump( validateDate('2016-11-32')); // false var_dump( validateDate('2017-02-29')); // false var_dump( validateDate('2016-11-02')); // true var_dump( validateDate('1970-12-21')); // true var_dump( validateDate('2017-07-29')); // true
1. First go to your project location using git bash
2. Use below command to go to project location:
3. Command:: cd /c/User/pritom/Git_Project/my_project
3. Now go to the branch from where you want to update file to
current branch
3.1 You have to update the branch from which you want to
checkout file
4. Command:: git checkout another_branch
5. Command:: git pull
6. Command:: git diff --name-only another_branch~1
(It will list files changed last 1 commit)
7. Now go to working branch using:
8. Command:: git checkout current_branch
9. First pull to update current branch using:
10. Command:: git pull
11. Now checkout files from another_branch using:
12. Command:: git checkout another_branch app/data/some_data.name
13. Now you file updated with another_branch
14. Command:: git status (It will show files changes)