Languages
[Edit]
PL

Git reset hard z usunięciem nieśledzonych plików

3 points
Created by:
Sylwia
3590

1. Git reset hard usuwa wszystkie nieśledzone pliki i katalogi.

Edit

To polecenie cmd zresetuje naszą gałąź i usunie wszystkie nieśledzone pliki i katalogi. Wszystkie niezatwierdzone zmiany zostaną usunięte i mamy czysty stan gałęzi. Bardzo potężne polecenie, zanim go użyjesz, pomyśl dwa razy.

Praktyczny przykład niektórych plików tymczasowych:

Edit

2. Wyjaśnienie resetowania git --hard HEAD

Edit

 

Git pozostawi niezatwierdzone pliki.

3. Wyjaśnienie git clean -fd

Edit

Git clean najbardziej przydatne flagi:

 

git clean -help całe wyjście:

4. Wyjaśnienie git clean --dry-run

Edit

 

To polecenie wyświetli listę elementów, które zostaną usunięte. Warto go uruchomić przed uruchomieniem git clean -fd.

5. Bibliografia

Edit
  1. git reset - Docs
  2. git clean - Docs
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Git (PL)

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join