Skip to content

AliciaChuang/Git-Workshop-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Git-Workshop-2023

Slides for reference - https://docs.google.com/presentation/d/15mr6dgsPVxKN2CCUypVuiLynnewNuAAhR8HBcFjTDrI/edit#slide=id.g2914a6f9f14_0_11

  • Have one person fork this repository on GitHub and invite others as collaborators
    • To add collaborators: Settings → Collaborators
  • Have each person pull the project into their local repository
    • git clone [HTTPS url]
  • Modify your functions and merge the changes
    • a merge conflict should occur. Try fixing it together with git rebase

Challenge activities

  • Create a new local branch with all the changes from main, and checkout that branch
    • ! git branch, git checkout

  • Make changes without committing and stash them. Then checkout main branch again
    • ! git add, git commit, git stash, git checkout

  • Make additional changes to main branch and commit multiple times without pushing
    • ! git add, git commit

  • Squash all unmerged commits and push to the remote repository
  • Switch back to your local branch, pop the changes and push the branch to a remote branch of the same name
    • ! git checkout, git stash pop, git add, git commit, git push -u origin [branch_name]

Possible Issues

  • Unable to link your Git and GitHub account together

    • $ git config --global user.name "Your name here"
    • $ git config --global user.email "[email protected]"
  • Unable to rebase

    • git config pull.rebase true
  • When trying to push, you get the error remote: Permission to .../.git denied to <username>.

  • If you need help at any time, feel free to let us know! We'll try and help you resolve the error.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages