Research Software Hour
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Help
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# RSH HackMD Link to this document: https://hackmd.io/@researchsoftwarehour/questions You can use this file to write questions and comments. **To edit click edit button** (either top left or top right) - Always write at the very bottom, this is easier for us to watch. - We will note here URLs that we mention during the session. - You may comment on, clean up, or answer other people's questions. - **Be respectful** and form a good community. - Jarno, you are a little quieter as the others ;) - better ;) thanks! - - answer - what is git? - ou - we will see in a moment ## Progression of use cases and topics GitHub is used for: - things for yourself (central location, backup, sharing, organizing, easy moving to later levels) - things for small groups (organizations, shared repos with or without PRs, etc) - things for community (outside collaborators, discussion, PRs, etc) Where are you? Where do you want to be? - questions ## Quick survey I have used git before: - yes: IoooooOooooIoooo - no: Ooooooo0oooo In the past I have already opened an issue on GitHub: - yes: oIIoooIII - no: OoOoooooooooooooo0ooo In the past I have already creaded a pull request on GitHub (or merge request on GitLab): - yes: ooooIooIo - no: oOooooooooooooooo --- ## What is git? - **Version control** - Track changes - Inspect history - Work together - Basically a requirement for any kind of serious programming work - But also useful for others. - *This talk is not about git: we assume you use it already* - tracks code, manuscripts, theses, etc. Example: https://github.com/bast/pr-exercise - Demo: - vim README.md - git diff - git add - git commit -m "Adding a line during the stream" - Is gitlab the same as github? - GitLab does the same things as GitHub, but it is a separate program. - The biggest difference is that you can run your own GitLab on a server - We'll get to this in a bit. ## What is GitHub? * Commercial company * ... hosting a **web repository, Github** * Very good free services for open-source projects. * vs Gitlab * Gitlab is open-source equivalent * Many universities have their own (e.g. version.aalto.fi, source.coderefinery.org) * For the most part, usage is the same. * Interfaces: take your pick * Git command line * Github desktop and apps * Github web interface * Cost * Github ownership Question: Are there command line interfaces for Github that work on Windows? - For git itself, Git for Windows. / gitbash https://gitforwindows.org/ - https://cli.github.com/ - This has some nice extra features (not just for Windows btw) I don't know if it's changed, but last time I checked, the Github Desktop was pretty unstable in Windows. ## Basic features: pushing and pulling Let's demo the basics of Github. - You connect to other servers via **git remotes**, controlled with `git remote`. - Once a remote is set, you `git push`, `git fetch`, and `git pull` - It isn't our goal to go in detail about the technical implementation: you can read this later. (we'll talk about why instead) Quick demo: - New repository - Create repository on Github - Add remote - Push to Github demo commands: - git log - git remote -v - git push origin master - ## Git for small groups - The next level is using Github among a research group, or something similarly small. - To be a group, you need to work together. To work together, you need a place to do so. - **Organizations** - **User management**: share among a group - **Issues**: Track things to do - **Pull requests**: Code review Question: I work with Jupyter Nitebooks. Is there an easy way to integrate those into github? thanks - great question! I use this locally (nice tool to visually diff and merge notebooks): https://nbdime.readthedocs.io/ but I don't know of a good way to see nice diffs directly on GitHub. I anticipate that GitHub is working on that. Anybody knows some solution? - Yeah, diffs not so good right now. I haven't heard of much beyond that, but many people do use git for notebooks, just realize that diffing and merging isn't so easy. - the nbdime is great locally for this but would be nice to see it directly in pull requests +1 ## Community projects: the next level - So you have your own group working well. What comes next? The community - There is little cost to accepting contributions from others. - Minimizing information overload in big community projects. ## Important considerations - Importance of a license file - Don't accept contributions until you get this clarified - How to contribute - Issue templates, pull request templates, etc. - Code of conduct Comment: - It's actually important that issues are not generally viewed as "problems" but more as improvement ideas, etc. cause otherwise some people tend to try to avoid having issues listed. ## Long term: archiving and Zenodo - Github is the de-facto source for open research software (for better or for worse) - Can you cite it in a paper? - Can you expect Github to be around in 20 years? - More likely than your university's Gitlab or personal webpage. (But does your user still exist?) - For permanent storage, connect to Zenodo and publish releases. - Zenodo is a EU-funded repository of science. Video demo of Zenodo link: https://www.youtube.com/watch?v=Atp-GmhS7gY ## Actions - Github Actions are continuous integration: they can run tests on every commit. - Automatic testing on changes: great for making sure things work! - Automatic deployment, for example push to git and a website gets updated. ## What's next? - CodeRefinery courses: https://coderefinery.org/lessons/ - git-intro (by yourself) - git-collaborative (Github + pull requsets) - Automated testing: Github Actions - - Research Software Hour: https://researchsoftwarehour.github.io/ - Aalto Research Software Engineers: https://scicomp.aalto.fi/rse/ - Coderefinery chat: https://coderefinery.zulipchat.com/ ## Feedback One good thing about today: - The demos were helpful! Thank you! - Great introduction! Thank you! - . - . - . One thing to be improved: - . - . - . - .

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully