FCM vs Git Cheat Sheet
Last updated on 2024-11-19 |
Edit this page
FCM vs Git
If you are familiar with FCM then this cheat sheet is for you!
Adapted from Tomek Trzeciak’s 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)
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 merge BRANCH_NAME
BASH
git pull REPO BRANCH_NAME
or:
BASH
git fetch REPO
git merge REPO/BRANCH_NAME
fcm resolve –accept=working FILE
fcm revert FILE
BASH
git checkout -- FILE
or the newer command:
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