See all blobs and commits that are not committed git fsck --lost-found Look at the content of a dangling...
git log --graph --oneline Prettier: git log --graph --oneline --decorate
git log --pretty=oneline
Use git reflog to find the SHA1 of commit of the branch. From that point, you can recreate a branch...
git commit --allow-empty
git clone -b mybranch --single-branch http://repo.com/repo.git
space next log entries q exit
git add -A stages All git add . stages new and modified, without deleted git add -u stages modified and deleted...
git branch -d the_local_branch delete a local branch git push origin --delete the_remote_branch [remove_the_local...
Best results in other decks
Must use Git Bash. To overwrite local master with remote: git checkout master git fetch --all git reset --hard origin/master...
When things go wrong, for example, caused by a bad commit, we need to revert back to an earlier known...