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

Sean Feldman's deck

git log --pretty=oneline

Use git reflog to find the SHA1 of commit of the branch. From that point, you can recreate a branch...

Sean Feldman's deck

git commit --allow-empty

git clone -b mybranch --single-branch http://repo.com/repo.git

space next log entries q exit

Sean Feldman's deck

Sean Feldman's deck
stackoverflow.com

git add -A stages All git add . stages new and modified, without deleted git add -u stages modified and deleted...

makandracards.com

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

stackoverflow.com

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...

Search in all decks