Steps * Run git reflog to see the reference logsReference logs, or reflogs, record when the tips of branches and other references were updated in the local repository. . * Run git reset --soft …
read more…
Steps * Run git log --oneline to list the commit (push-cmt) to be pushed and the SHA (rmt-head-sha) of the HEAD (rmt-head) of the remote repository. * Run git rebase -i rmt-head-sha to re-order…
read more…
Steps * Find the ID (denoted by pre-cmt-id) of the previous commit of the commit that you need to modify. * Run git rebase -i pre-cmt-id. * Modify pick to edit in the line where the commit to…
read more…
Steps Append the following code to ~/.gitconfig. Then you can run git lg, git lg1, git lg2 and git lg3 to see the output, respectively. Further Reading * <https://stackoverflow.com/questions…
read more…