Download presentation
Presentation is loading. Please wait.
1
xkcd.com/1597
2
git
3
and some other tips & tricks & stuff
gitting started and some other tips & tricks & stuff
4
github.ncsu.edu Team repositories are hosted on NC State’s GitHub. You give yourself access through the SDC System dashboard. Teaching staff and sponsors have read access.
5
github.ncsu.edu Utilizing the team repositories allows the teaching staff to stay up-to-date on your progress gain insight into individual contributions easily archive and hand off project data. Use of the repository we created for you is mandatory!
6
What happens as your project grows, multiple people are pushing a lot of code to it?
It grows and grows - lots of features are being added in - lots of different parts are being worked on simultaneously If everyone's just pushing changes directly to master, it will get out of hand quickly
10
Visualizing
16
xkcd.com/1296
17
Short summary in ~50 characters or fewer More detailed explanatory text, if necessary. Explain the problem that this commit is solving. Focus on *why* you are making this change as opposed to *how* (the code explains that). Are there side effects or other unintuitive consequences of this change? Here's the place to explain them. - Bullet points are okay, too - Use hyphens or asterisks Put references to issues at the bottom, like this: Resolves: #123 See also: #456, #789
18
- Remember, git and github are separate things.
- Git is the underlying technology, github is a web services and UI platform built on top of git
19
Issue tracker
20
Pull requests Issues and pull requests facilitate conversations around the code, as well as helping tie related pieces of information together. We can see commits and other references on this pull request inline, chronologically, with the conversation We can dive down into each of these commits individually if we want, or get an overview of what's changed between the base commit and the tip of the current PR branch
21
We can dive down into each of these commits individually if we want, or get an overview of what's changed between the base commit and the tip of the current PR branch Built-in code review features to provide feedback on code changes
22
… or add code review comments directly inline with the changes
23
Projects give kanban-style (Trello-style) project management boards to organize issues and tasks
24
Learning
25
git-scm.com
26
git-scm.com
27
git-scm.com/book
28
youtube.com/githubguides
29
atlassian.com/git
30
other misc. tips & tricks & stuff
31
$ > git config $ > git config --global user
$ > git config $ > git config --global user.name "My Name" $ > git config user.
32
Someone else's code / modules / libraries. Using a package manager
Someone else's code / modules / libraries? Using a package manager? Weird OS filesystem stuff? .gitignore it!
33
weird OS stuff. DS_Store. Trashes Thumbs
weird OS stuff .DS_Store .Trashes Thumbs.db ⋮ there's too much, just google for some default .gitignore files
34
modules / libraries compilation artifacts personal IDE Settings log outputs GitHub has lots of boilerplate pre-made ones that are good starting points: github.com/github/gitignore
36
git going!
37
Credits 6, 9. Commit graph visuals adapted from 8. Branch flow diagram 17. Example commit message adapted from
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.