Skip to content

A repository for teaching some of the basics of Git workflow

License

Notifications You must be signed in to change notification settings

timmoy/Git-Exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git-Exercises

A repository for teaching some of the basics of Git workflow. Change branches to view and work on the respective exercise.

Exercise 1 - Commits

Exercise 2a,b,c,d - Merging, Rebasing and Solving Conflicts

Git Command Reference

  • change branches git checkout [branch name]
  • create a branch based on current branch git checkout -b [branch name]
  • check what files have been changed since last commit git status
  • prepare file to be commited git add [file path]
  • commit changes with message git commit -m "[message]"
  • push changes of your current branch git push origin [branch name]
  • merge a branch onto your current branch git merge [branch name]
  • rebase your current branch onto another branch (your changes will start after the most recent changes on that branch) git rebase [branch name]
  • rebase with interactive options to edit commits git rebase -i [branch name]

About

A repository for teaching some of the basics of Git workflow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published