git policies - nc state university...twbs / bootstrap 1 watch 6,729 unstar 105,923 fork 48,152 pulse...

15
git policies and some other tips

Upload: others

Post on 07-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects

git policiesand some other tips

Page 2: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects

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.

Page 3: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects

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!

Page 4: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects
Page 5: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects
Page 6: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects
Page 7: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects
Page 8: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects

other misc. tips

Page 9: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects

$ git config

$ git config --global user.name "My Name"

$ git config user.email "[email protected]"

Page 10: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects

xkcd.com/1296

Page 11: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects

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:

Fixes #123 See also: #456, #789

Co-authored-by: Name Person <[email protected]>

Page 12: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects

.gitignore

Weird OS filesystem stuff?Logs

Package managerIDE Settings

github.com/github/gitignore

Page 13: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects
Page 14: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects

Some Advanced Settings

Default branch

Branch protection

Webhooks

Page 15: git policies - Nc State University...twbs / bootstrap 1 Watch 6,729 Unstar 105,923 Fork 48,152 Pulse Milestones Author Code Filters O Issues 244 is:issue is:open Pull requests 67 Projects

To enable advanced features

[email protected]