Commit 956f4f00 authored by Michal Hečko's avatar Michal Hečko
Browse files

Merge branch 'class3-homework' into 'main'

[536230] Class 3 homework submission

See merge request red-hat/mastering-git!43
parents 6f107cbc cad438b7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
Some of the concepts and commands, which I have come to understand more (so far):
- difference between and importance of origin/upstream
- difference between forking and cloning
- !! git rebase -- how and why; interactive rebase !!
- git reset -- usage other than resetting after you have messed up your branch (e.g. splitting up a previous commit into smaller ones, or vice versa)
- git pull and git fetch
- !! how to take full advantage of and use git log and git reflog !!
+15 −0
Original line number Diff line number Diff line
    1  clear
    2  git switch -c class3-homework
    3  cd ./class3_homework/
    4  touch 536230.txt
    5  vim 536230.txt 
    6  git commit -m "[HOMEWORK 3] Added file containing cleared up concepts"
    7  git add ./536230.txt 
    8  git commit -m "[HOMEWORK 3] Added file containing cleared up concepts"
    9  git push origin class3-homework 
   10  touch 536230_commands.txt
   11  history > 536230.txt
   12  ls
   13  git restore ./536230.txt 
   14  vim 536230.txt 
   15  history > 536230_commands.txt