M
M
Michael2017-05-13 03:24:09
git
Michael, 2017-05-13 03:24:09

How to properly rollback or remove the latest commit in github?

Hello, I'm just learning git and I have a question, I'm making a project in Visual Studio Asp.Net MVC and when pushing to github, in addition to the files that I changed in my project, minor changes were pushed, those that are not of interest to view the commit history, t .e. all sorts of system files, etc. because of this, when you look at the commit page on the github, it lags everything, since there are a lot of files. Since I made a mistake, I didn’t add the .gitignore folder at first and didn’t put the files that need to be ignored there, now I need to somehow delete or change the last commit so that I first add .gitignore (as I understand it, there will be a separate commit for this ) and then again I pushed my main files, but without those system files, can you help me which set of commands should be used in this situation? Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2017-05-13
@M-Misha-M

https://git-scm.com/book/ru/v1/%D0%9E%D1%81%D0%BD%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question