This repo is a short guide to learning git
. Check the installation section before proceeding further.
The objectives are the things we want to learn with this project:
- Install
git
(see installation section) - Cloning the repository
- origin
- local
- Repository operations
- Modify an existing file and
- "saving" the changes (
add
) - "persisting" the changes (
commit
)
- "saving" the changes (
- Add a new file and ...
- "Send" the changes to the origin (
push
) - "Check" if something has changed in the origin (
fetch
)
- Modify an existing file and
The easiest and preferred way is to install the Xcode Command Line Tools
. From MacOS 10.9 you can:
- open the
Terminal
- run
git --version
If git
is not installed already, a prompt will apper asking you to instal it.
Another method is to download the installer here.
The official build is available for download on the Git website. The download will start automatically. Git for Windows is different from git
itself; if you want more information on it, vistit https://gitforwindows.org.
Additional info on how to install git
can be found in the official documentation.