Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.13 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.13 KB

learningGit

Instructions

  • Fork repo from GitHub UI

image

  • Clone repo to the local machine
git clone clone https://github.com/viv-garot/learningGit.git
  • Create and checkout branch on local machine
git checkout -b newbranch 
  • Add a remote pointing to the original repo you have forked on
git remote add upstream https://github.com/torgaskillmap/learningGit.git
  • Do the codes changes locally
 Edit file, add screenshots, ...
  • Push the changes from the newbranch to the remote fork
git push origin newbranch
  • Create PR on GitHub from fork/branch into org/main

image

  • Merge the PR on GitHub

image

  • Download changes from the original repo to the local clone repo
git pull upstream main
  • Push those changes to the remote forked repo
git push origin main