Git
git revert to previous commit [Practical Examples]
git revert to previous commit can be done using different methods such as git checkout, git revert and git reset. We have covered examples using all these …
git HEAD~ vs HEAD^ vs HEAD@{} Explained with Examples
The tilde (~), caret(^) and at-sign(@) are reference suffixes used in GIT. Ideally if HEAD was a merge, then first parent is the branch into which we merged and …
git pull force Explained [Easy Examples]
A git pull force procedure enables an update to a local repository with remote content even when you have pending commits.
git push force Explained [With Examples]
git push force is used to overwrite commits on the remote repository. Alternatively we can use git force with leave to make sure commits are not overwritten
git fetch vs git pull Explained [With Examples]
git pull performs both git fetch + git merge without any user prompt. git fetch wil only fetch the reefs and tags from remote repo but will not merge them to …
