Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git Tutorial #22

Open
jjm469 opened this issue Sep 9, 2023 · 3 comments
Open

Git Tutorial #22

jjm469 opened this issue Sep 9, 2023 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@jjm469
Copy link
Contributor

jjm469 commented Sep 9, 2023

Make a basic git tutorial for C2S2 members.

@jjm469 jjm469 assigned tomaschoi03 and jjm469 and unassigned tomaschoi03 Sep 9, 2023
@tomaschoi03
Copy link
Contributor

This is a good tutorial I use ("Getting Started" page is helpful with examples): https://www.atlassian.com/git/tutorials

@UnsignedByte UnsignedByte added the documentation Improvements or additions to documentation label Sep 11, 2023
@UnsignedByte UnsignedByte added this to the Tutorial Documentation milestone Sep 11, 2023
@UnsignedByte UnsignedByte added the S: Discussion Needed Status: Topic needs urgent discussion label Sep 11, 2023
@UnsignedByte
Copy link
Contributor

UnsignedByte commented Sep 11, 2023

This already exists in conflucence under C2S2 Team Resources here, but is also not written and links to the ece4750 git tutorial. We should definitely flush this out, and cover

  • Basic git commands
    • How to clone the repo
    • pushing/pulling
    • Creating branches (using make new_ip in our case) - this might mean we want to make a digital-specific tutorial on git instead?
    • switching between branches
    • How to merge branches
  • Some github specific things
    • How to write an issue
      • What to include/not include in an issue title/description
      • How to label an issue
      • How to assign yourself to an issue
    • How to create a pull request
      • Linking issues to a pull request
      • How to request code review
      • How to review someone's code (how to leave comments, where to see files changed)
      • How to approve someone's code

Currently this is also not exactly the most accessible (pretty clear considering most of us, me included, didn't know this existed until today), so we should definitely provide links to it.

We should discuss whether to leave this on confluence or make a digital specific one and put it maybe elsewhere?

@jjm469
Copy link
Contributor Author

jjm469 commented Sep 17, 2023

Temporary tutorial

git add .

  • do to add changes

git branch RouterJJM

  • makes a new branch with name "RouterJMM"

git branch

  • shows all branches. Active branches denoted with *

git checkout RouterJJM

  • makes it so all changes about to be pushed are to the "RouterJJM" branch

git commit -m "Router"

  • Every commit needs to have message so that is what -m "Router" is.

git push origin RouterJJM

  • pushes changes to the branch RouterJJM.

git pull origin master

  • Update local repo to match main.

*** Push to main or a branch
git add .
git commit -m "Notes on what changed"
git push origin [branch]

***Pull Request
git checkout -b "testbranch"
git push -u origin testbranch
(ON GITHUB): create new pull request

@UnsignedByte UnsignedByte removed the S: Discussion Needed Status: Topic needs urgent discussion label Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants