Skip to content

Latest commit

 

History

History
41 lines (39 loc) · 1.21 KB

File metadata and controls

41 lines (39 loc) · 1.21 KB

Git Workshop

This repository is for the Git Workshop

Cloning

Start off by cloning this repository to your desktop!
MAKE SURE YOUR DIRECTORY IS AT DESKTOP
cd Desktop
git clone https://github.com/palwolus/git-workshop.git

Quick Cheetsheet

  • Configuring Git
    • git config --global user.name '[username]'
    • git config --global user.email '[email]'
    • git config --global --list List Configuration
  • Creating & Managing Git
    • git init [directory]
    • git status
    • git add .
    • git commit -m '[message]'
  • Logs & Resetting
    • git log
    • git reset --soft [hash]
    • git reset HEAD [file]
    • git checkout -- [file]
    • git reset --hard [hash]
  • Branching
    • git branch [name]
    • git checkout [name]
      • git checkout -b [name]
    • git merge [name]
  • Github (Sharing Files)
    • git remote add origin [remote]
    • git push -u origin [branch]
    • git pull [remote]
    • git clone [remote]
    • Pull Request by other users

Files

Inside the folder extra consist of a more detailed exaplaination of the commands:

  • git add
  • git commit
  • git reset