Git त्यागने स्थानीय परिवर्तन

कोड उदाहरण

17
0

git त्यागने स्थानीय परिवर्तन

# Discarding local changes (permanently) to a file:
git checkout -- <file>

# Discard all local changes to all files permanently:
git reset --hard
6
0

पूर्ववत unstaged परिवर्तन git

git checkout -- .
3
0

git रीसेट एक फ़ाइल

git checkout HEAD -- my-file.txt
2
0

git त्यागने unstaged फ़ाइलें

git stash save --keep-index --include-untracked
2
0

git सभी परिवर्तनों को पूर्ववत

git reset --hard
1
0

निकालें स्थानीय परिवर्तन git

git fetch  # will fetch the latest changes on the remote
git reset --hard origin/master # will set your local branch to match the representation of the remote just pulled down.

इसी तरह के पन्ने

उदाहरणों के साथ समान पृष्ठ

अन्य भाषाओं में

यह पृष्ठ अन्य भाषाओं में है

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................