https://github.com/MarieEtienne/reproductibilite
2025-09-10
This means copy locally on your computer the content of a repository which means
Before using Git, we need basic bash commands
Navigating Directories in the Terminal / Git Bash
Action | Linux/macOS/Git Bash | Windows Command Prompt |
---|---|---|
Go to a directory | cd folder_name |
cd folder_name |
Go up one level | cd .. |
cd .. |
Go to home | cd ~ |
cd %USERPROFILE% |
Absolute path | cd /path/to/folder |
cd C:\path\to\folder |
Use Tab
for autocomplete paths and filenames.
Paths on Git Bash use /
, even on Windows (/c/Users/...
).
Go to your home directory (/home/login
in Linux, probably somethin like C:/Users/yourusername
in Windows)
Create a directory named git
, where you will store all your git projects
Jump within this directory
list the files contained in this directory
Create a test_dir
directory
Jump outside the git
directory
Remove the git
directory and everything it contains
Create a directory named git
, where you will store all your git projects
Go to your git Directory and write
Navigate to the repository you want to clone On the main page, click on the “Code” green button, be sure to select SSH and copy paste the address.
Forking creates your own copy of someone else’s repository in your GitHub account. This lets you experiment with changes without affecting the original project. How to fork a repo:
Navigate to the repository you want to fork on GitHub Click the “Fork” button in the top-right corner of the repository page Choose where to fork it - usually to your personal account Wait a moment - GitHub will create the copy in your account
You’ll have a complete copy of the repo in your GitHub account You can clone this forked version to your local machine using git clone Make changes, commit them, and push back to your fork If you want to contribute back to the original project, you can create a pull request
Your fork is independent of the original repo You have full control over your forked version The original repo remains unchanged unless you submit a pull request that gets accepted You can sync your fork with the original repo later if it gets updated
This workflow is essential for contributing to open-source projects or collaborating on code when you don’t have direct write access to the original repository.
Remove the stats-reminder directory and its content
Fork https://github.com/MarieEtienne/stats-reminders on your personnal GitHub account
clone your version of stats-reminder
Show the history of this file
Penguins_chapter.qmd
and add your name and the list of authors, then save your file.Type the command git add penguins.Rmd
, then repeat the previous commands.
Type the command git commit -m "Added an author"
, and once again check the project status.
Check the project on Github
Type the command git push"
, and once again check the project on Github