Skip to content
Home
Dev Convert Generate Finance Calc Design Security Media

More categories

Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

GuidesBlogAPI & MCPCheatsheetsChangelog All categories

Browse

439 tools · 15 categories

Start here

Popular tools New this week 11 All tools 439

Categories

Developer Tools 91 Converters 65 Calculators 32 Finance Tools 32 Generators 31 Media Tools 27 Design Tools 25 Security Tools 25 Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

Guides Cheatsheets Blog REST API MCP server Changelog

No matches here.

Keep FindUtils free Sponsors fund new tools
  1. Cheatsheets
Guides Blog API & MCP
Sponsor
FindUtils
Sponsor
  1. Home
  2. Cheatsheets
  3. Git & Version Control
  4. Git Branches and Remotes

Git & Version Control · Cheatsheet

Git Branches and Remotes Cheatsheet

Create branches, inspect remote tracking, fetch updates, and use fast-forward merges. Check shared-branch rules before publishing changes.

39 commands 7 sections

On this sheet

Before a branch change 5 Inspect branches 6 Create and switch 5 Inspect and fetch remotes 5 Compare before integration 5 Integrate and publish 7 Sources and related references 6
Try it in the browser Merge a base .env with an overlay using a conflict rule you pick, and download one .env file. Open Env Merge

No entry matches that filter.

Before a branch change

  • Check the project rules Some shared projects require all work on one branch
  • Commit or preserve your work Start a merge with a clean working tree
  • main, feature, origin Example names; replace them with your project names
  • Remote-tracking branch A local record of remote state, refreshed by fetch
  • Fast-forward only Update a branch only when its tip can move forward

Inspect branches

  • git branch --show-current Print the current branch name; detached HEAD gives no name
  • git branch --list List local branches
  • git branch --remotes List local remote-tracking references
  • git branch --all List local and remote-tracking branches
  • git branch -vv Show branch tips and configured upstreams
  • git status --short --branch Show working state and available ahead or behind counts

Create and switch

  • git branch feature Create feature at the current commit without switching
  • git switch feature Switch to an existing local branch
  • git switch -c feature Create a branch at HEAD and switch to it
  • git switch -c feature origin/main Start a new branch from the fetched remote reference
  • git switch --track origin/feature Create a local branch that tracks origin/feature

Inspect and fetch remotes

  • git remote -v Show configured remote names and URLs
  • git remote get-url origin Read the fetch URL for origin
  • git remote show -n origin Show cached remote details without contacting the server
  • git fetch origin Fetch remote objects and update remote-tracking references
  • git fetch --all Fetch all configured remotes that permit this operation

Compare before integration

  • git log HEAD..origin/main --oneline List fetched main commits absent from HEAD
  • git log origin/main..HEAD --oneline List local commits absent from fetched main
  • git diff --stat HEAD origin/main -- Compare local and fetched file snapshots
  • git diff --name-only --diff-filter=U List paths that still have merge conflicts
  • git merge-base HEAD origin/main Find a common ancestor when one exists

Integrate and publish

  • git merge --ff-only origin/main Fast-forward the current branch or refuse divergence
  • git pull --ff-only Fetch the upstream and require a fast-forward update
  • git merge feature Merge feature into the current branch; conflicts can stop it
  • git add -- <resolved-file> Stage a file after you resolve and review its conflicts
  • git merge --continue Finish an active merge after all conflicts are resolved
  • git push --dry-run origin feature Preview the remote update without sending it
  • git push -u origin feature Publish feature and set its upstream if the push succeeds

Sources and related references

  • https://git-scm.com/docs/git-branch Check branch listing and upstream options
  • https://git-scm.com/docs/git-switch Check branch creation and switch behavior
  • https://git-scm.com/docs/git-fetch Check which remote references fetch updates
  • https://git-scm.com/docs/git-merge Check merge conditions and conflict handling
  • https://git-scm.com/docs/git-push Check push options and remote checks
  • /cheatsheets/git-history/ Inspect the commits and changes before a merge

Related cheatsheets

  • Git History and Diffs38 commands
  • Gitignore Patterns40 commands
  • Git Commands55 commands

Tools for this work

  • Env MergeMerge a base .env with an overlay using a conflict rule you pick, and download one .env file.
  • Merge ICSCombine several .ics calendar exports into one calendar file, with optional UID dedupe.
  • Merge BookmarksCombine two or more bookmarks.html exports from Chrome, Firefox, Edge or Safari into one file to import.

From FindUtils

More to explore

Products and services from the team behind FindUtils.

Promote your tool
Featured product seeranks.com SeeRanks — transparent product discovery A public ranking board where paid placement is always labeled and every product keeps its earned position. View SeeRanks Public rank board #1 Sponsored #2 #3 #4 Paid placement is always labeled Free favicon tool emojifavicons.com Emoji Favicons Turn any emoji into a favicon with one HTML line. SVG, PNG or ICO, no sign-up. <link rel="icon" href=".../🦊.svg"> Create a favicon
FindUtils service findutils.com Articles for software tools A sourced article for your channels, or a sponsored FindUtils publication with editorial review. Compare packages Domain portfolio findutils.com Domain names for sale .com.dev.sh.app.io Unused names across dev tools, AI, PDF and commerce. Make an offer. Browse the list Playable ranking towerscore.io TowerScore — stack the skyline Play to climb, or buy a floor. Paid floors are labeled. Open TowerScore

Missing a tool you need?

Tell us what to build next. Most requests ship as a free browser tool, an API endpoint and an MCP tool.

Request a tool
FindUtils

Free, fast utilities. Most tools process your files in the browser; lookup tools say what they send, and pages load analytics and ads.

  • No sign-up for free tools
  • Most tools run in your browser
  • 369 tools on the REST API, 369 on MCP

Tools

DevelopersConvertPDFDesignSecurityAll tools →

Learn

GuidesBlogCheatsheetsChangelog

Build

REST APIMCP serverAPI referenceWorkflowsStatus

FindUtils

AboutLibraries we useSponsorRequest a toolDomains for saleContact
© 2026 FindUtils PrivacyTermsSitemap
Service status
FindUtils

Free, fast utilities that respect your data. Most tools run in your browser.

Build with it

REST APIMCP serverGuidesChangelog

FindUtils

AboutSponsorPrivacyContact
Theme
© 2026 FindUtils Terms
FindUtils
Guides Blog REST API MCP server Changelog

Categories

Developers 91 Convert 65 Calculate 32 Finance 32 Generate 31 Media 27
All 15 categories →

Keep it free

Sponsorship keeps every tool free and funds the new ones we ship each week.

Sponsor Back the project
Tools API Sponsor