FCM vs Git Cheat Sheet

Last updated on 2024-12-12 | Edit this page

FCM vs Git


If you are familiar with FCM then this cheat sheet is for you! Adapted from Tomek Trzeciak’s (Met Office) comparison page.

fcm branch-create BRANCH_NAME (fcm bc)

BASH

git checkout -b BRANCH_NAME

This also switches you to the new branch.

BASH

git checkout -m -b BRANCH_NAME

Switches you to the new branch and also keeps local changes.

fcm branch-create –switch BRANCH_NAME (fcm bc –switch)

BASH

git checkout -b BRANCH_NAME main

fcm branch-list (fcm bls)

BASH

git branch

fcm checkout BRANCH_URL WORKING_COPY_PATH

BASH

git clone REPO_URL WORKING_COPY_PATH
cd WORKING_COPY_PATH
git checkout BRANCH_NAME

fcm switch BRANCH_NAME

BASH

git checkout BRANCH_NAME

or the newer command:

BASH

git switch BRANCH_NAME

fcm status

BASH

git status

fcm info

BASH

git status

fcm log

BASH

git log

fcm merge BRANCH_NAME

BASH

git pull REPO BRANCH_NAME

or:

BASH

git fetch REPO
git merge REPO/BRANCH_NAME

fcm conflicts

BASH

git mergetool

fcm resolve –accept=working FILE

BASH

git add FILE

fcm revert FILE

BASH

git checkout -- FILE

or the newer command:

BASH

git restore FILE

fcm commit

BASH

git add FILE
git commit
git push

fcm update

BASH

git pull REPO BRANCH_NAME

If BRANCH_NAME is not specified the default branch will be pulled.

fcm branch-delete BRANCH_NAME (fcm brm BRANCH_NAME)

BASH

git branch -d BRANCH_NAME