git status shows you the branch you’re currently
on.
git switch -c <branch-name> creates a new branch
and switches you to it. Make sure you know what branch you are branching
from before using git switch without a start-point!
git switch -c <branch-name> <start-point>
lets you define the start-point to branch off, via another branch name,
a commit ID, or a tag.
git switch <branch-name> switches you to another
branch that already exists.
git branch -vv shows you all the branches in the
repository.
Files can be stored in a project’s working directory (which users
see), the staging area (where the next commit is being built up) and the
local repository (where commits are permanently recorded).
git add puts files in the staging area.
git commit saves the staged content as a new commit in
the local repository.
Write a commit message that accurately describes your changes.
The LICENSE, LICENSE.md, or
LICENSE.txt file is often used in a repository to indicate
how the contents of the repo may be used by others.
People who incorporate General Public License (GPL’d) software into
their own software must make the derived software also open under the
GPL license if they decide to share it; most other open licenses do not
require this.
The Creative Commons family of licenses allow people to mix and
match requirements and restrictions on attribution, creation of
derivative works, further sharing, and commercialization.
People who are not lawyers should not try to write licenses from
scratch.