SVN to GIT Cheatsheet

From Free Pascal wiki
Revision as of 19:06, 16 June 2021 by Martin (talk | contribs) (Created page with "= ABOUT = This page contains an introduction to GIT, for users with prior SVN experience. == Alternative to this Page == There is a prior page with similar indent: FPC_g...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

ABOUT

This page contains an introduction to GIT, for users with prior SVN experience.

Alternative to this Page

There is a prior page with similar indent: FPC_git

This alternative page differs in some main points:

  • The alternative is based on the older/established git commands "checkout" and "reset". This page uses "switch" and "restore"
Those older commands are harder to learn/understand. They do not have clean distinction between different tasks.
The makers of GIT introduced the new commands as a replacement. But the new commands are still marked as "experimental". They are stable and save to use. But they may still have changes in future git versions.
In my opinion the fact that they are easier to learn, compensates well for the off chance that one may later have to learn about potential changes to them.
(Also, even old/established commands can get changed. But less likely)
  • The alternative page teaches "using the index" as the way to go.
This is only one option to use git. As it requires additional steps in several commands, it is less preferable to users coming from svn.
The GIT documentation contains all the steps, how to use GIT without "index". So this is as good a way to use git as any other.
(One still needs to be aware, in case one accidentally access the index.

Useful to know background

There a few concepts about git, that everyone should at least be aware off.

Please read the page FPC_git_concepts

Command MAP