From 4becb0df62e08f89851a063f85da126f82071ece Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Wed, 17 Mar 2021 14:48:43 +0100 Subject: [PATCH] minor changes and update repo URL --- 2021/2021-03-18_basicGitTraining/slides/cloneRepo.md | 4 ++-- 2021/2021-03-18_basicGitTraining/slides/essential_commands.md | 3 +++ 2021/2021-03-18_basicGitTraining/slides/forks.md | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/2021/2021-03-18_basicGitTraining/slides/cloneRepo.md b/2021/2021-03-18_basicGitTraining/slides/cloneRepo.md index c5ded98d..dac03e4c 100644 --- a/2021/2021-03-18_basicGitTraining/slides/cloneRepo.md +++ b/2021/2021-03-18_basicGitTraining/slides/cloneRepo.md @@ -3,12 +3,12 @@ You have to `clone` it first: ```bash -$ git clone ssh://git@git-r3lab-server.uni.lu:8022/<groupName>/myRepo.git myRepo +$ git clone git@github.com:LCSB-BioCore/basic-git-practice.git ``` If you did not configure your SSH key, clone using HTTPS: ```bash -$ git clone https://git-r3lab.uni.lu/<groupName>/myRepo.git myRepo +$ git clone https://github.com/LCSB-BioCore/basic-git-practice.git ``` You will be prompted to enter your credentials. diff --git a/2021/2021-03-18_basicGitTraining/slides/essential_commands.md b/2021/2021-03-18_basicGitTraining/slides/essential_commands.md index d226a407..8e1e0f64 100644 --- a/2021/2021-03-18_basicGitTraining/slides/essential_commands.md +++ b/2021/2021-03-18_basicGitTraining/slides/essential_commands.md @@ -16,6 +16,7 @@ $ git push <remote> <branch> + # Pull the latest version of an existing branch Pull the latest revision on branch `myBranch`: @@ -31,6 +32,8 @@ Verify its `status` with: $ git status ``` + + # Modify a file Copy the file `firstnameLastname.md` in the folder `_attendees` and rename it with your firstname: diff --git a/2021/2021-03-18_basicGitTraining/slides/forks.md b/2021/2021-03-18_basicGitTraining/slides/forks.md index f9966946..c01b942d 100644 --- a/2021/2021-03-18_basicGitTraining/slides/forks.md +++ b/2021/2021-03-18_basicGitTraining/slides/forks.md @@ -61,6 +61,8 @@ If you did not configure your SSH key, clone using HTTPS: $ git clone https://github.com/<yourName>/basic-git-practice.git ``` + + # A note on shortcuts ... <font color="red"> @@ -71,6 +73,8 @@ Any other rudimentary method such as shall **be avoided**! </font> +<br> + **Why?** -- GitLab