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: |

Hashtags are a fast way to find the correct information on social media. To put your content out there, be sure to add hashtags to each post. We have two intelligent tips to give you: The optimal dimension of the avatar on Telegram is 512px by 512px, and it’s recommended to use PNG format to deliver an unpixelated avatar. Administrators Add the logo from your device. Adjust the visible area of your image. Congratulations! Now your Telegram channel has a face Click “Save”.! Informative
from us


Telegram Khamidulla’s Micro Blog 🫵🏻
FROM American