Tag: github commands
-
How to generate a patch with edited files? How to zip latest committed changes only
Reference: https://stackoverflow.com/a/42971972/2229148 sometimes you need all the files that were updated so you can patch an external app which doesnt uses same git project or many other scenarios in which we need a zip or tar of those files. Use the above command to do so There is a smarter way also, if you want…
-
How to push into master or any other branch after removing last n commits in git?
git log to find out the commit you want to revert git push origin +daee17:master while daee17 is the commit before the wrongly pushed commit.+ was for force push Finally use git push origin master to sync your local with your git repo And that’s it. Below is my log aka example. One of the…
-
How to learn Git in 15 minutes? List of most basic git commands
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. Every dev has a working copy of the code and full change history on their local machine Here are…