Skip to content

GDSC-Lodz-University-of-Technology/git-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Git basics

Requirements

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

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

Downloading the repository

  • 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

Workshops aim

At the end of this workshop, you should have a basic understanding git. You should also know the most important features of GitHub platform.

Resources

Git tree alias

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published