Why you would use it. A Git
repository opens in a panel like a folder. Look at another branch, a tag, an old commit or
every version of one file, all without checking anything out and without touching your
working folder. View any file in it with F3, copy a file or a whole folder out
with F5, and compare two versions side by side. Looking inside a repository
never changes it; the Git commands further down are how you commit, pull and push.
What you need. Git for Windows,
from git-scm.com. RFCommand works with your own Git, so it sees every repository exactly as
Git does.
Opening a repository. Go to any
folder inside a checkout. A small badge with the branch name, such as
main, appears at the right of the path. Click it, press
Ctrl+Alt+G, or right-click and choose
Git, Open in Git, and the same tab
shows the repository, at the same folder, on that branch. The path then shows
:: after the
checkout's folder, such as
C:\Projects\App::Branches\main\src\,
and you can type a path like that yourself. Backspace at the top, or
Ctrl+Alt+G again, takes you back to the folder on disk.
Inside a commit. A commit is a
folder named with its date, short id and message. Changes
holds only the files it added, changed or deleted (a deleted file is shown faded and still
opens), Files holds every file as
it was then, commit.txt says who
made it, when, and why, and changes.patch
is the whole change as one patch.
Getting an old version back.
Open the repository, go to File history, step into the file and press F5 on the
version you want. It is copied to the other panel like any other file.
Comparing. Right-click a file and
open the Git submenu. Compare with previous
version shows what its last change did, and Compare
with working copy compares a version with the file on disk now. In your working
folder, Compare with the branch you
are on shows what you have changed since the last commit.
Git commands. Right-click a file, a
folder or empty space in a checkout and the Git
submenu has the everyday commands.
Cancel stops a Git command at once and leaves the repository working as before. Switch,
Merge and Pull ask first, because stopping them part way can leave your files between two
versions. When a command fails you see what Git itself said, which is usually the answer. A
merge or pull that stops on conflicts says how many there are and offers to abort; otherwise
resolve them and use Commit to finish the merge. If a repository is left locked, for
example after a crash, RFCommand offers to clear the lock and try again.
Starting a repository. In a folder
that is not in a checkout, the Git submenu offers Clone...
and Create repository here....
Clone fills in an address from the clipboard, can take a branch and the submodules, and
opens the new clone in a tab when it is done.
TortoiseGit. If it is installed,
right-clicking in a checkout also shows a TortoiseGit
submenu with its own windows, such as Check for modifications, Show log, Blame, Sync and
Rebase, opening straight away on what you right-clicked. When one closes, the panels
showing that checkout update at once.
A repository you have not cloned.
Add a connection under Connections, Git
with the repository's address (https, an SSH address or a network share). Tick
Use the credentials Git already has,
or type a user name and a password or access token, and press Test to check it in about a
second. Even a large repository opens quickly, has the same folders as one on your
computer, and shows new commits while you are looking at it.
GitHub. The
GitHub source opens repositories on
GitHub without cloning anything. Give a repository's address to open that one, or an
owner's to list their repositories. GitHub asks for a personal access token rather than
your password (read only access to Contents is enough), and the connection form has a link
that opens GitHub's page for making one. With no token, public repositories still open,
and typing a path such as
\owner\repository
in the path box opens any public one. Tick Ask
for the token when connecting to keep it out of the saved connection.
Preferences, Git sets whether files
come out as your checkout would write them or exactly as stored, how many commits a History
page holds, how often a Git server and GitHub are checked for new commits, which git.exe to
use if Windows cannot find it, and whether the TortoiseGit submenu is shown.