tgoop.com/khamidulla_inoyatov_microblog/331
Last Update:
Day 172
Kun masalalari:
🟢 605. Can Place Flowers
🟡 2348. Number of Zero-Filled Subarrays
O’qish uchun material:
*nix dagi quyidagi komanda bilan <command> --help
orqali tanishing:
- git restore
DIY:
Bugungi git restore
komandasining kechagi git revert
komandasidan asosiy farqi - git restore
yangi commit hosil qilinmasdan, working va staging area’dagi file larni oldingi xolatiga qaytaradi:git init
echo "File content - Version 1" > example.txt
git add example.txt
git commit -m "Commit 1"
echo "File content - Version 2" >> example.txt
git commit -am "Commit 2"
git log --online
echo "File content - Version 3" >> example.txt
cat example.txt
git restore --source=a1b2c3d --staged --worktree -- example.txt
cat example.txt
Yuqorida --source=a1b2c3d
, bu qaytarilishi kerak bo’lgan commit hash kodining birinchi 7 raqami. Uni git log --online
komandasini natijasidan olasiz.
Javoblar:
🟢 495. Teemo Attacking
🟡 56. Merge Intervals
#SDM
@khamidulla_inoyatov_microblog
BY Khamidulla’s Micro Blog 🫵🏻

Share with your friend now:
tgoop.com/khamidulla_inoyatov_microblog/331