Hannes Datta
Let's talk about it…
Pick any repository, and describe its content.
Each repository has…
README.md
)On a repository, we can find several tabs
readme.md
to “First repository with exercises in dPrep” & commit your changes on GitHub.comGit on your own computer for actual coding and file versioning
GitHub.com for interactive web interface and project management
We first proceed with the interactive interface on GitHub.com.
Note: I will have to make you members of the organization for this to work…
Task:
When finished, you should have an empty board with four columns (you may want to change to card view).
Open a new issue
Assignment
Tip: For now, let's say you need to add the motivation of your project to the readme.
Overview available at https://dprep.hannesdatta.com/docs/project/resources/cheat-sheets/
I'll first demonstrate it on one of my own repositories. You can then repeat these steps on your own repository.
You iterate between the following stages.
1) Team meeting (“scrum meeting”)
2) Individual work
Meet again with your team.
Repeat workflow until you're done (or the deadline has passed…)
git clone
repository to which you have access to (once)git pull
to update from the cloud (before starting to work)git status
, git add
, git commit -m "message"
(multiple times)git push
to push changes to cloud (after finishing work)1.) Copy the URL to your class room repository
2.) Open Git Bash, and type
git clone https://github.com/course-dprep/{in-class-tutorial-hannesdatta}
(REPLACE with your username, do not {hannesdatta}, please!)
3.) Check whether you see your repository on your computer
Got an error? (“Support for password authentication was removed on August 13, 2021”) –> Check how to fix it here.
gh pull XXXX
)git status
)git status
(view changes)git add <filename>
(add file(s) to “staging area”)git commit -m "message"
(freeze commit)git push
(push to GitHub; sometimes also git push -u origin branch_name
)git log
)
git checkout <commithash> filename
(will overwrite old file)(Alternatively, use: git show <commithash>:filename > old_filename
) to get the old file as a second file.)
master
/main
branch holds your working version of your project.hannes-123
, but named by a featureIt's good practice to assign reviewers to new pull requests.
main
branch (vs.: we work in one synchronized folder in the cloud)rfile-hannes1.R
)Start working on your project (e.g., set up a repository in our dprep
organization)
Idea: Invest in your GitHub profile (design an about page)
How to Start: