Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • R3/school/courses
  • vilem.ded/courses
  • todor.kondic/courses
  • noua.toukourou/courses
  • nene.barry/courses
  • laurent.heirendt/courses
  • marina.popleteeva/courses
  • jenny.tran/courses
8 results
Show changes
Commits on Source (2)
# Add repository to VS Code workspace (separately from cloning)
If you alredy have a copy of repository on your laptop (cloned using terminal) you can work on it and want to setup VS Code to simplify interaction with Git.
# Add repository to workspace (separately from cloning)
- Go to **File > Add Folder to Workspace**<br>
<img height="230px" src="slides/img/add-root-folder.png">
- Your project is in your Workspace now<br>
<img height="370px" src="slides/img/hero.png">
\ No newline at end of file
![bulb](slides/img/bulb.png) If you already have a copy of repository on your laptop, you can add it to VS code by following:
- Go to **File > Add Folder to Workspace**
<center>
<img width="30%" src="slides/img/add-root-folder.png">
</center>
\ No newline at end of file
# Download your copy to your laptop - clone
# Clone your fork
Now you have your copy of the repository on server. You need to download it to your laptop.
In git words: you need you *clone your fork*:
Every repository is on the server. If you want to contribute using VS code, you need to download it to your laptop.
In git jargon: you need you *clone your fork*:
- Go to your projects (top left corner with LCSB logo)
- Find **basic-practice-pages** project under your name and where you are the owner
- Press *Clone* and then *Clone with SSH*. URL will be in your clipboard now.<br>
<img height="300px" src="slides/img/clone.png">
- Open VS Code. If you haven't opened a folder yet, the VS Code view will show you a buttor to Clone Repository. Otherwise, go to View > Command Pallete and type "clone":<br>
<img height="230px" src="slides/img/firstrun-source-control.png">
- Find **basic-practice-pages** project under your name (your fork)
- Press *Clone* and then *Clone with SSH*. URL will be in your clipboard now.
<img width="60%" src="slides/img/clone.png">
- Switch to VS Code. Go to `View` > `Command Palette` and type "clone"
# Clone your fork
- You will be asked for the URL of the remote repository (you have it in your clipboard now)
<img height="100px" src="slides/img/clone-SSH.png">
- and the place where to put files on your computer.
# Download your copy to your laptop - clone
<img height="400px" src="slides/img/clone-folder.png">
- To start working, you can now click on "Add to workspace"
- You will be asked for the URL of the remote repository (you have it in your clipboard now)<br>
<img height="100px" src="slides/img/clone-SSH.png"><br>
- and the place where to put files on your computer.<br>
<img height="400px" src="slides/img/clone-folder.png">
- To simplify your life you can click "Add to workplace" on next step<br>
<img height="100px" src="slides/img/add-to-workspace.png">
<img height="100px" src="slides/img/add-to-workspace.png">
../../../../2021/2021-03-18_basicGitTraining/slides/img/bulb.png
\ No newline at end of file
[
{ "filename": "index.md" },
{ "filename": "ide.md" },
{ "filename": "VSCodeGUI.md" },
{ "filename": "ssh.md" },
{ "filename": "workflow.md" },
{ "filename": "fork.md" },
{ "filename": "VSCodeGUI.md" },
{ "filename": "clone.md" },
{ "filename": "add-to-workspace.md" },
{ "filename": "branch.md" },
......