Collaboration

Remotes, fetch, pull and push; pull requests and conventional commits; .gitignore and GitHub Actions.

About 4 hours of study

Learning objectives

Lessons

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

Module quiz

1. What does git fetch change?
2. Which conventional commit type marks a bug fix?
3. Why is a push rejected?
4. Patterns *.log then !keep.log: is keep.log ignored?
5. The last release is 2.3.4 and new commits include a feat but nothing breaking. What is next?
6. Can a ! pattern re-include a file inside an ignored directory?

‹ Changing historyFinal assessment ›