Before you will use this repository make sure that you have installed:
-
Git
-
If you are a Windows or macOS user visit this link Downloading Git then download appropriate installer and install it.
-
If you are a Linux (Arch-based distribution) user you can paste bellow scrip into your terminal or visit this page Installing Git
sudo pacman -S git
-
-
GitHub
- Create a free account on GitHub. You can find registration form under this link Create GitHub account
If you followed every step, you should be ready to start using this repository. To make sure that you have installed everything correctly open your terminal git-bash and run the following commands:
- To check git:
git --version
→ you should see output with git version
-
Open your terminal / git-bash in location where you create a directory which will contain this repository
-
Run the following command in your terminal / git-bash
git clone https://github.com/GDSC-Lodz-University-of-Technology/git-basics.git cd ./git-basics
At the end of this workshop, you should have a basic understanding git. You should also know the most important features of GitHub platform.
- Learn how to use GitHub with interactive courses designed for beginners and experts GitHub Skills
- Learn Git by playing computer game Learn Git Branching
- Video Git tutorial in polish Kurs Git po polsku od podstaw
- Git documentation Gid Documentation
- Set of rules how to write good commit messages Conventional commit
- Markdown syntax, used to create documentation Basic Syntax
If you would like to use same formatting for logging git tree in terminal you can use this configuration:
git log --graph --pretty=format:'%Cred%H%Creset %C(yellow)%d%Creset %n %s %n %C(bold blue)<%an>%Creset %Cgreen(%cs, %cr)' --abbrev-commit --date=relative --branches
You can also save this command under alias to make easier to use in the future
git config --global alias.tree "log --graph --pretty=format:'%Cred%H%Creset %C(yellow)%d%Creset %n %s %n %C(bold blue)<%an>%Creset %Cgreen(%cs, %cr)' --abbrev-commit --date=relative --branches"
Now you can run
git tree
to see the results