Git – Undoing Changes: git checkout git revert git reset git clean

Git Undoing Changes git checkout git revert git reset git clean https://www.atlassian.com/git/tutorials/undoing-changes Whereas reverting is designed to safely undo a public commit, git reset is designed to undo local changes. Because of their distinct goals, the two commands are implemented differently: resetting completely removes a changeset, whereas reverting maintains the original changeset and uses a…

Read More

Git Submodules – keep a Git repository as a subdirectory of another Git repository

https://git-scm.com/book/en/v2/Git-Tools-Submodules Submodules allow you to keep a Git repository as a subdirectory of another Git repository. This lets you clone another repository into your project and keep your commits separate. Starting with Submodules Let’s start by adding an existing Git repository as a submodule of the repository that we’re working on. $ git submodule add…

Read More