Git
Everyday Git commands, branch workflows, history rewriting and recovery.
Change global editor to edit merging etc
Change global editor to edit merging etc — notes from the Git collection.
1 min readGit Command
To list all references
1 min readGit Delete Branch
See which side introduced the current differences
1 min readGit Log
To show short commit id, date and commit title To view the code changed by commit id To show graph with last 5 lines To show all branchs
1 min readGit Pull
Breakdown Updating 1accfd5..b22e649 Your local branch was at commit 1accfd5. After pulling, it moved to commit b22e649. Fast-forward Git did not create a merge commit. Your local…
1 min readGit Rebase
https://youtu.be/nn0Pr7U8YHc?list=PLTZYG7bZ1u6qck0rYNHO2Yfjzq5ZRRTCe&t=2646
1 min readGit Remote
Git Remote — notes from the Git collection.
1 min readGit Squash
chose squash instead of pick
1 min readGit Submodules
A practical guide to adding, updating, moving and removing Git submodules.
1 min readGithub Commit
To list the folder of the tree by commit id
1 min readSee the diff introduced by the latest pull
See only that specific file See a summary first Then inspect the full changes: If the pull created a merge commit Useful workflow Use --name-only instead Better: let Git handle…
1 min readTo create new branch from committed hash id
To push this new branch to the github
1 min readTo list remote branches
To list remote branches — notes from the Git collection.
1 min readTo list tag
To list tag — notes from the Git collection.
1 min readTo see committed id
To see committed id — notes from the Git collection.
1 min read