Hello guys,
instead of a new article, I'd like to share two printable cheatsheets with you.
I hope you'll find these useful.
Cheatsheet 1: Common Git commands for local development
The first cheatsheet shows a common development workflow when working on a development project. Among these are:
- How to initialize a Git repository
- How to add and remove files from the Git repos
- How to manage code changes over several new features
Get the PDF from my Git repos: https://github.com/tq-bit/dev-cheatsheets/blob/main/q-bit_cheatsheets_git_and_github_I.pdf
Cheatsheet 2: Remote Git Servers
The second cheatsheet shows you a common, distributed development pattern and visualizes how several maintainers work on the same codebase.
It attempts to answer the questions about:
- How does a pull request work?
- How are local and remote repositories synchronized?
- How to delete a remote branch?
Get the PDF from my Git repos: https://github.com/tq-bit/dev-cheatsheets/blob/main/q-bit_cheatsheets_git_and_github_IGit%20Cheatsheet_II.pdf
Update 19.03.2022: Add new layout for Cheatsheet I
Top comments (8)
Great work!
At step 4.) the names 'stash' and 'stage' are used to speak about the same thing
Hi Reneo,
thanks for pointing it out, I've corrected the same in the img & pdf.
OP 🔥🔥
In cheatsheet 2 , developer 1 and developer 1(local), does the local means a new branch?
Hi Kiran.
cool
Could you please explain what the difference is between Origin and Upstream?
It is also not clear to me what the colors of all the dots stand for.. Thanks
Hi Kurt.
Origin and Upstream are naming conventions when working with remote repositories
Regarding the dots - each color represents a separate repos/branch combination
E.g. for the owner repos