KHAMIDULLA_INOYATOV_MICROBLOG Telegram 331
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
👍1



tgoop.com/khamidulla_inoyatov_microblog/331
Create:
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

View MORE
Open in Telegram


Telegram News

Date: |

How to Create a Private or Public Channel on Telegram? Users are more open to new information on workdays rather than weekends. Just at this time, Bitcoin and the broader crypto market have dropped to new 2022 lows. The Bitcoin price has tanked 10 percent dropping to $20,000. On the other hand, the altcoin space is witnessing even more brutal correction. Bitcoin has dropped nearly 60 percent year-to-date and more than 70 percent since its all-time high in November 2021. 4How to customize a Telegram channel? How to create a business channel on Telegram? (Tutorial)
from us


Telegram Khamidulla’s Micro Blog 🫵🏻
FROM American