Accounts

A person, an organization, an enterprise

Personal accountone per person:your identity on GitHubORGANIZATION: A SHARED ACCOUNTrepositoriesteamsowned by the organization, not a personmemberENTERPRISE: MANY ORGANIZATIONS, ONE SET OF POLICIES AND ONE BILLANOTHER ORGANIZATIONrepositoriesteamsThree kinds of account: a person, an organization, an enterprise.You sign in with a personal account, and everything you do is recorded under it. An organizationis a shared account where people work together on repositories it owns. An enterprise groupsseveral organizations under central control.

A personal account is you. An organization is shared. An enterprise groups organizations.

Accounts · Going deeper

Plans, and who owns what

PlanForIn a few wordsGitHub Freepeople and organizationsUnlimited public and private repositories; some features limited in private onesGitHub Proone personMore Actions minutes and storage; protected branches and code owners in private reposGitHub Teaman organizationPer-user billing; required reviewers and other team tools in private reposGitHub Enterprisea companySAML single sign-on, internal repositories, more security and compliance controlsWho owns whatPersonal accountOwned by one person; a repository in it has one owner and collaboratorsOrganizationOwned by its owners; access is given through members, teams and rolesLeaving a companyYour personal account stays yours; the organization's repositories stay with itOne person needs only one personal account, and joins any number of organizations with it.

Free, Pro, Team and Enterprise.

GitHub Flow

Branch, commit, pull request, review, merge, delete

1. Createa branchm1mainfix-login2. Makechangesc13. Open apull requestc2review begins4. Addressreview commentsc3a fix is pushed5. Merge thepull requestm26. Deletethe branchfix-login is gonemain can be deployedGitHub Flow: branch, commit, pull request, review, merge, delete.One rule stands above the others: main can always be deployed. All work happens on a short-livedbranch, and reaches main only through a pull request.

GitHub Flow: six steps, and main is always deployable.

GitHub Flow · Going deeper

Good practice at each step

StepGood practiceCreate a branchA short, descriptive name, such as fix-login or add-exportMake changesSmall commits, each with a message that says what and whyOpen a pull requestDescribe the change and link the issue; use a draft if not readyAddress review commentsPush more commits to the same branch; the pull request updatesMergeAfter approval and passing checksDelete the branchThe work now lives in main; old branches only cause confusionA pull request is a conversation about a branch, and the gate in front of main.Anyone can use GitHub Flow, not only developers: it works for documentation and policies too.Git flow is a different, heavier model with long-lived develop and release branches.

Short-lived branches, small commits, and a pull request as the gate.

Check yourself

Branchadd-export was created from mainCommitstwo commits were pushed to itNowthe author wants feedback before it reaches main

In GitHub Flow, what comes next?

Markdown

Plain text with marks that GitHub formats

What you type# Release notes**Fixed** the login bug- [x] tests pass- [ ] update the docsCloses #42@ana please reviewWhat GitHub showsRelease notesFixedthe login bug☑ tests pass☐ update the docsCloses#42links the issue, and closes it on merge@anaplease reviewnotifies AnaMarkdown is plain text with a few marks that GitHub turns into formatting.You use it everywhere you write on GitHub: README files, issues, pull requests, comments, wikisand discussions. GitHub adds its own extras: task lists, @mentions and # references.

Markdown formats READMEs, issues and comments. Task lists, @mentions and #references are GitHub extras.

Markdown · Going deeper

Markdown syntax

You typeYou getNotes# Title ## Sectionheadingsone to six # signs**bold** *italic*bold, italic- item 1. itembulleted and numbered lists- [ ] task - [x] donea task list with checkboxesprogress shows on the issue[text](https://…)a link![alt](image.png) for an image`code` ```fenced block```inline code, a code blockname a language for colouring> quoted texta block quote| a | b |a tablewith a |---| row under the header@name #42 :tada:a mention, a reference, an emojiGitHub extrasMarkdown files end in .md. The README.md at the top of a repository is shown on its front page.GitHub's version of the syntax is called GitHub Flavored Markdown.

Headings, lists, links, code, quotes and tables.

Desktop and Mobile

Four ways in to the same repositories

GitHub.comthe websiteeverything, includingsettings and administrationGitHub Desktopan app for your computercommit, branch and pushby clicking, not typingGitHub Mobilean app for your phonenotifications, reviews,merging and replyingCommand linegit and the gh CLIscripts, automationand full controlFour ways in to the same repositories. Choose by where you are and what you need to do.GitHub Desktop is for people who want Git without the command line: it shows changes visually andhandles commits, branches and syncing. GitHub Mobile is for keeping work moving while away fromyour desk: triage notifications, review and merge pull requests, answer issues. Neither replacesthe website for settings and administration.

GitHub Desktop is Git by clicking. GitHub Mobile keeps reviews moving from a phone.

Desktop and Mobile · Going deeper

Which tool, when

ToolUse it whenNot forGitHub.comyou need any feature at allworking offlineGitHub Desktopyou want Git with a visual interfaceissues, settings, administrationGitHub Mobileyou are away and need to respondwriting substantial codegit (command line)you want every Git operation, or scriptsGitHub-only things such as issuesgh (GitHub CLI)you want issues and pull requests from a terminalgithub.dev, Codespacesyou want to edit in the browser (lesson 6)Desktop and Mobile are free, made by GitHub, and work with the same account.GitHub Desktop runs on Windows and macOS. GitHub Mobile runs on iOS and Android.

Desktop for visual Git, Mobile for responding, the web for everything.

Check yourself

- [ ] write the tests

How does GitHub show this line in an issue?

Enterprise options

Enterprise: hosted by GitHub, or by you

ENTERPRISE CLOUD: HOSTED BY GITHUBGitHub runs itupdates, uptime and scaling are theirs✓Enterprise Managed Users available✓data residency in a chosen region, as an option✓always the newest featuresENTERPRISE SERVER: HOSTED BY YOUYou run iton your own servers or private cloud✓for strict network or regulatory rules✓you choose when to install each release✗you carry the operations workGitHub Enterprise comes two ways: hosted by GitHub, or run on your own servers.Both add what large companies need on top of organizations: single sign-on, central policies,audit logs and internal repositories. The choice between them is about who operates the systemand where the code is kept.

Enterprise Cloud is hosted by GitHub. Enterprise Server runs on your own servers.

Enterprise options · Going deeper

Clue words for accounts, Flow and Markdown

When the question saysThe answer isRemember"your identity on GitHub"Personal accountone per person"shared account for a team's repositories"Organizationmembers, teams, roles"manage several organizations centrally"Enterprise accountpolicies, billing, SSO"self-hosted GitHub"Enterprise Serveron your own infrastructure"lightweight, branch-based workflow"GitHub Flowsix steps"first step of GitHub Flow"Create a branchnever commit straight to main"ask for feedback on changes"Open a pull requesta draft if not ready"format text in issues and READMEs"Markdown.md files"checkboxes in an issue"Task list: - [ ]tracks progress"notify a person in a comment"@mention#42 links an issue"Git without the command line"GitHub DesktopWindows and macOS"review a pull request from a phone"GitHub MobileiOS and AndroidWith lesson 2, this completes domain 1: 25 to 30% of the exam.

Organization, GitHub Flow, Markdown, Desktop and Mobile.

Check yourself

Rulesource code must stay on servers the company operatesNetworkno connection to the public internetWantspull requests, issues and Actions as on GitHub

Which option fits this company?

Lesson complete

You finished “Accounts, GitHub Flow and Markdown”

Answer the questions along the way to see your score here.

Open in a new tab