Thanks to visit codestin.com
Credit goes to github.com

Skip to content

annayPaul/git-assignment-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Assignment 1 - Individual

Documentation (Tasks 5-7)

Cherry Pick

  • Cherry Picked the commit eef4e08 from branch experimental-branch into main
  • For adding a programming problem: Added the fibonacci function that calucaltes the ith fibonacci number

Revert Changes

  • Added a .gitignore file in the commit 4b19a4b and Reverted this commit in e2309cac
  • Modified the fibonacci function to cause errors

Reset

  • Used git reset --hard HEAD~1 to Reset back to the working code
  • Differences between
    • --soft: Restores the desired commit, does not change the staging area & working directory
    • --mixed: (Default) Restores the desired commit and changes the staging area. Keeps the working directory unchanged
    • --hard: Restores the desired commit in the modifies the staging area & working directory as well

Squash

image

Squashed 3 commits into 1. Stored those 3 commits the the "squash" branch

Delete

image

Deleted a file

Stash

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages