How we worked on the group project:
- Came up with ideas
- Talked about the structure and library we could use
- Set our goal: Leaning how to collaborate with Git by fork
- Learned and Practiced the workflow of GitHub fork
- Set a timeline and Used "Trello" to trace the progress
- Assigned tasks to each one
- Had several meeting to make sure everyone worked well and were on the same page
- Wrapped up
Noted down the workflow of GitHub fork:
Step 1. Fork the repo
Step 2. Clone the forked Repository
cd folderName
git clone https://github.com/Your-GitHub-Username/github-practice
step 3. Create my feature branch
git checkout -b myOwnBranchName
step 3.1 Work on my part and push to my remote repository
git add .
git commit -m “......”
git push origin myOwnBranchName(feature)
Step 4.1 Check if the develop branch has ever changed
(Do it every time I resume my work)
git fetch upstream
git checkout main
git merge upstream/develop
Step 4.2. Push to my own remote repository
git push origin main
Step 5 Merge synchronized main to my local feature branch which I am currently working on
git switch(or checkout) yourOwnBranchName(feature)
git merge main
if merge conflict happens, go step6.
step 7. Push to my own remote repository after merge
git push origin myOwnBranchName(feature)
Top comments (0)