Collaboration
Remotes, fetch, pull and push; pull requests and conventional commits; .gitignore and GitHub Actions.
About 4 hours of study
Learning objectives
- Synchronize with remotes safely
- Work through pull requests with clear commits
- Ignore files and automate checks
Lessons
- 1
Remotes: clone, fetch, pull and push Intermediate
Work with copies of a repository on GitHub and on teammates' computers. Clone a repository, fetch new commits, pull them into your branch, push your own, and understand ahead and behind counts and why pushes are rejected.
- 2
Pull requests and conventional commits Intermediate
Collaborate on GitHub through forks and pull requests: propose a branch, get it reviewed, and merge it. Write commit messages in the Conventional Commits format so that tools can generate changelogs and choose the next version automatically.
- 3
.gitignore and GitHub Actions Intermediate
Keep build output, logs and secrets out of the repository with .gitignore patterns, and automate tests and checks on every push and pull request with GitHub Actions workflows triggered by branch patterns.
Module practice
- Git: Read a remote URLEasy
- Git: Ahead, behind or diverged?Medium
- Git: Which pushes does the remote accept?Hard
- Git: Check a conventional commitEasy
- Git: The next release versionMedium
- Git: Generate release notesHard
- Git: Does this push trigger the workflow?Easy
- Git: Is this path ignored?Medium
- Git: .gitignore with ** and ignored directoriesHard