Marc Hauschildt
Web Technologies and Computer Software Development Instructor at Kirkwood Community College in Cedar Rapids, IA.
Week 10
During the month of October, there is a global open source contribution initiative called Hacktoberfest.
To participate, you need to register your GitHub account on their website and make at least 4 meaningful pull requests in the month of October.
Here are some examples of open source projects
git remote -v
git remote add upstream https://github.com/mlhaus/xxxx.git
git remote -v
git checkout -b yourname-contribution1
git add .
git commit -m 'A meaningful message'git push origin yourname-contribution1
git pull origin main
git checkout main
Note: If you make any changes to the main branch, you must remove or commit the code before continuing.
Use the Git > Fetch command to obtain the change history (branches and commits) from the upstream repo.
Or you can enter this command: git fetch upstream
When you fetch changes from upstream, all new commits are downloaded and stored as a remote branch.
Use the Git > Merge command to merge changes from the upstream main branch into your local main branch.
git merge upstream/main
git push origin main
Original
Repo
Your
Copy
Local Computer
Fork it
Clone to
set Origin
Set Upstream
Fetch
Changes
Push Changes
By Marc Hauschildt
Web Technologies and Computer Software Development Instructor at Kirkwood Community College in Cedar Rapids, IA.