|
Outline
|
|
# What is [GitLab](https://about.gitlab.com)
|
|
|
|
- Git repository management, task tracking, milestones, activity feeds, teams, and WIKIS!
|
|
What is GitLab
|
|
- Open Source
|
|
|
|
- Very actively maintained
|
|
How to sign in
|
|
- Why not use GitHub or Bitbucket?
|
|
- unblock all users who are here
|
|
- They don't provide private repositories for large teams (unless you pay a lot!)
|
|
|
|
|
|
Main organization
|
|
# How can I get in?
|
|
|
|
- Go to https://gitlab.precise.seas.upenn.edu
|
|
|
|
- Click on the Google 'G' logo and sign in using your Google credentials
|
|
|
|
- Finally, Peter will unblock you
|
|
|
|
- (Action: Peter unblocks all new users in the session)
|
|
|
|
|
|
|
|
# What are all of these options?
|
|
- groups
|
|
- groups
|
|
- projects
|
|
- projects
|
|
- privacy settings, permissions
|
|
- privacy settings, permissions
|
|
|
|
|
|
Git
|
|
# What is Git
|
|
- https://training.github.com/kit/downloads/github-git-cheat-sheet.pdf
|
|
- [Git cheatsheet](https://training.github.com/kit/downloads/github-git-cheat-sheet.pdf)
|
|
- why git?
|
|
- Why git?
|
|
- workflow
|
|
- Typical workflow
|
|
- add ssh keys!
|
|
- (Activity: Add your ssh key to your profile)
|
|
- Github Desktop
|
|
- [Github Desktop](https://desktop.github.com)
|
|
|
|
|
|
wiki
|
|
# Wiki editing
|
|
- Markdown
|
|
- Markdown syntax
|
|
- pages, syntax
|
|
- Make a new pages, syntax
|
|
- attach files
|
|
- Drag-and-drop files to attach
|
|
|
|
|
|
project
|
|
# Projects
|
|
- namespace
|
|
- namespace
|
|
- based around a git repo
|
|
- based around a git repo
|
|
- add members and roles
|
|
- add members and roles
|
|
- privacy level
|
|
- privacy level
|
|
|
|
|
|
groups
|
|
# Groups
|
|
- when to make, how to organize
|
|
- when to make, how to organize
|
|
|
|
|
|
issues, milestones
|
|
# Issues and Milestones
|
|
- what they are, when to use them
|
|
- what they are, when to use them
|
|
|
|
|
|
[Markdown syntax](https://gitlab.precise.seas.upenn.edu/help/markdown/markdown)
|
|
[Markdown syntax](https://gitlab.precise.seas.upenn.edu/help/markdown/markdown)
|
|
[User permission levels](https://gitlab.precise.seas.upenn.edu/help/permissions/permissions)
|
|
[User permission levels](https://gitlab.precise.seas.upenn.edu/help/permissions/permissions)
|
|
|
|
|
|
|
|
## Command line instructions
|
|
|
|
|
|
|
|
### Git global setup
|
|
|
|
|
|
|
|
`git config --global user.name "Peter Gebhard"
|
|
|
|
git config --global user.email "pgebhard@gmail.com"`
|
|
|
|
|
|
|
|
### Create a new repository
|
|
|
|
|
|
|
|
`git clone git@gitlab.precise.seas.upenn.edu:hacms/hacms-test.git
|
|
|
|
cd hacms-test
|
|
|
|
touch README.md
|
|
|
|
git add README.md
|
|
|
|
git commit -m "add README"
|
|
|
|
git push -u origin master` |