Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: I fuck up with git... what do i do (in cmd) ? #18

Open
EloiStree opened this issue May 23, 2020 · 1 comment
Open

Question: I fuck up with git... what do i do (in cmd) ? #18

EloiStree opened this issue May 23, 2020 · 1 comment

Comments

@EloiStree
Copy link
Owner

No description provided.

@EloiStree
Copy link
Owner Author

You can discord change

Back rebase on the remote

Local unstaged

https://stackoverflow.com/questions/52704/how-do-i-discard-unstaged-changes-in-git

  • git-clean
  • git clean -df then git checkout -- .
  • git checkout -- .
  • git checkout -- filename

Local staged

https://stackoverflow.com/questions/348170/how-do-i-undo-git-add-before-commit

  • git reset
  • git reset
  • git reset HEAD
  • git rm --cached . -r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant