12 KiB
Git and Patterns for Managing Source Code Branches. CI/CD BOTs
- Git Distributed Version-Control System
- Design By Contract
- Git Cheat Sheets
- Patterns for Managing Source Code Branches
- Git Commands
- BitBucket
- GitLab
- CI/CD BOTs
Git Distributed Version-Control System
- Wikipedia: Git
- Git
- devdocs.io/git/
- tutorialzine.com: Learn git in 30 minutes 🌟🌟
- 3 Git Commands I Use Every Day
- Git and Github in Plain English
- opensource.com: How to restore older file versions in Git
- 9 awesome git tricks
- Awesome Git 🌟
- dzone.com: intro git 🌟
- dzone.com: Top 20 git commands with examples 🌟
- dzone.com: 8 Useful But Not Well-Known Git Concepts These lesser-known Git tricks can help you solve problems that are not handled well by the GitHub and BitBucket GUIs
- dzone.com: Git Commands Tutorial - Part 1
- dzone.com: Git Commands Tutorial - Part 2
- Dzone refcard: Getting started with Git
- Oh shit, git!
- How to Get More Out of Your Git Commit Message
- 10 useful Git commands you wish existed – and their alternatives
- github.blog: How to undo (almost) anything with Git
- dev.to: Git Explained - The Basics
Design By Contract
Wikipedia: Design by contract (DbC), also known as contract programming, programming by contract and design-by-contract programming, is an approach for designing software.
It prescribes that software designers should define formal, precise and verifiable interface specifications for software components, which extend the ordinary definition of abstract data types with preconditions, postconditions and invariants. These specifications are referred to as "contracts", in accordance with a conceptual metaphor with the conditions and obligations of business contracts.
Git Cheat Sheets
- git-scm.com: Git reference
- zeroturnaround.com: Git cheat sheet 🌟
- ndpsoftware.com: Interactive git cheat sheet 🌟
- The awesome git cheat sheet
- developers.redhat.com: Git cheat sheet
- atlassian.com: Git cheat sheet
- github.github.com/training-kit: Git cheat sheet
- education.github.com: Git cheat sheet
- dzone.com: refcard - getting started with git
- git-tower.com: Git cheat sheet
- rogerdudler.github.io: git - the simple guide 🌟 Just a simple guide for getting started with git. no deep shit ;)
Patterns for Managing Source Code Branches
- adevait.com: Creating a Branching Strategy for Small Teams
- atlassian.com: Comparing Workflows
- git-scm.com: Git Branching - Branching Workflows
- git-scm.com: Distributed Git - Distributed Workflows
- Dzone refcard: Git Patterns and Anti-Patterns Scaling from Workgroup to Enterprise. Suggests patterns and anti-patterns, including Hybrid SCM, Git champions, blessed repository, per-feature topic branches, and ALM integration.
- Dzone: Basic Git Branching In this article, we walk through the basics of branching with Git to get you started with better managing your versioning during projects.
- martinfowler.com: Patterns for Managing Source Code Branches
- Release Branch Pattern: A branch that only accepts commits accepted to stabilize a version of the product ready for release.
Trunk Based Development
- Trunk Based Development
- paulhammant.com: What is Your Branching Model?: Mainline, Cascade, Trunk-Based Development, Short Lived Feature Branches, Continuous Deployment, Subversion noise on branching, etc.
- paulhammant.com: What is Trunk-Based Development?
- The Origins of Trunk Based Development
- quora.com: What is trunk based development?
- kean.github.io: Trunk-Based Development
Feature Branch Development (aka GitFlow)
Git Flow
- One of the main concepts of GitFlow is feature branches. The idea is that each feature should be developed in its own branch. When the feature is done, it gets merged into develop branch.
- atlassian.com: Gitflow Workflow
- gitkraken.com: GitFlow is a list of rules to keep a repo’s history organized, and is used to make the release process, bug fixes, and feature creation easier.
- git-flow.readthedocs.io
- aprendegit.com: git-flow: la rama develop y uso de feature branches
- medium.com: Gitflow — Branch Guide
- medium.com: Git Flow for Beginners
- medium.com: What is GitFlow?
- gist.github.com/JamesMGreene: A comparison of using
git flowcommands versus rawgitcommands - Git-flow cheatsheet
Trunk-based Development vs. Git Flow
- toptal.com: Trunk-based Development vs. Git Flow
- victorops.com: Source Code Control: Trunk-Based Development vs. GitFlow
- medium: GitFlow VS Trunk-Based-Development
- Dzone: Why I Prefer Trunk-Based Development Over Feature Branching and GitFlow 🌟 Check out the components of Trunk-based Development as implemented by Facebook and Google, and see how it helps resolve and prevent merge conflicts.
- team-coder.com: From Git Flow to Trunk Based Development
Alternative Branching Models
Feature Flags (Feature Toggles)
- featureflags.io: Flags vs Branching Branch better with feature flag driven development.
- martinfowler.com: Feature Toggles (aka Feature Flags)
Git Commands
- Show commit logs:
git log --oneline --all --graph --decorate
BitBucket
- bitbucket.org
- Atlassian Git Cheatsheet
- Dzone: source control using atlassian bitbucket
- Dzone: how I use bitbucket in my regular routine
GitLab
CI/CD BOTs
Use bots to accomplish tasks like merging PR's that have been approved and automatically updating dependencies. Usage of one of these bots might allow us to trigger certain builds based off of specific GitHub tags, it would allow us to only selectively run certain test suites and increase the throughput of the build by only testing changes made in a branch / PR.
Investigate options that are available and see if we can integrate them with CI.
We should be able to configure this bot to automatically apply labels to PR's based off of what is changed in a PR. For instance, if a PR contains any documentation changes, the area/Documentation label can be applied.