... | ... | @@ -172,7 +172,7 @@ IThe initial window will show up (maybe the program requests some other informat |
|
|
|
|
|
### Cloning your working repo
|
|
|
|
|
|
We are going to work on our own **working repository** that is in gitlab (you just forked it!). The first step is called **cloning the repo**. It will **copy the repository** from gitlab and create a **local copy** in **your computer**.This operation is executed just **once per computer**, so, if you are working in two computers, you will have to **clone the repository twice**.
|
|
|
We are going to work on our own **working repository** that is in Github (you just forked it!). The first step is called **cloning the repo**. It will **copy the repository** from Github and create a **local copy** in **your computer**.This operation is executed just **once per computer**, so, if you are working in two computers, you will have to **clone the repository twice**.
|
|
|
|
|
|
From the main Pycharm windows we select the option **Get from version Control**
|
|
|
|
... | ... | @@ -194,7 +194,7 @@ Then move to Pycharm and paste the URL. |
|
|
|
|
|

|
|
|
|
|
|
Then select **local folder** were you want to store your project. By default it is located in the **PycharmProjects** folder in your home. The image below selects the default folder, but you can chose your own. Click on the **Clone** button. You will now be requested for your gitlab credentials; use those you just used to access the online repo (probable the same as your institutional's).
|
|
|
Then select **local folder** were you want to store your project. By default it is located in the **PycharmProjects** folder in your home. The image below selects the default folder, but you can chose your own. Click on the **Clone** button.
|
|
|
|
|
|
Now you will be asked if you want to **open** the new project.
|
|
|
|
... | ... | @@ -218,7 +218,7 @@ If you click on the top left folder, you will see all the **contents** of your w |
|
|
|
|
|

|
|
|
|
|
|
Before doing our first Python program, let's make some **changes** to the **README file** and upload into our remote repository in Gitlab. Click on the README file to edit it.
|
|
|
Before doing our first Python program, let's make some **changes** to the **README file** and upload into our remote repository in Github. Click on the README file to edit it.
|
|
|
|
|
|

|
|
|
|
... | ... | @@ -236,7 +236,7 @@ Congrats! You've done your first commit! |
|
|
|
|
|

|
|
|
|
|
|
But you have committed your change to the **local repository** in your computer. It is not yet in gitlab. You have to execute a **push command**. Click on the option at **VCS/Git/Push**.
|
|
|
But you have committed your change to the **local repository** in your computer. It is not yet in Github. You have to execute a **push command**. Click on the option at **VCS/Git/Push**.
|
|
|
|
|
|

|
|
|
|
... | ... | @@ -389,7 +389,7 @@ Once the configuration has been created, **running the program is straightforwar |
|
|
|
|
|
### Adding the program to the Github repo
|
|
|
|
|
|
Now that the program is working, it is time to **add** it to our **repo**. First we have lo add it to our **local repo** (commit) and then **pushing** it to the **remote repo** at Gitlab.
|
|
|
Now that the program is working, it is time to **add** it to our **repo**. First we have lo add it to our **local repo** (commit) and then **pushing** it to the **remote repo** at Github.
|
|
|
|
|
|
* Click on the **commit button**.
|
|
|
|
... | ... | @@ -407,11 +407,11 @@ Notice that now the hello.py file is **NOT green anymore**. It has the same colo |
|
|
|
|
|

|
|
|
|
|
|
After some seconds, you will see the **confirmation message**. Our local repo has been pushed to Gitlab!
|
|
|
After some seconds, you will see the **confirmation message**. Our local repo has been pushed to Github!
|
|
|
|
|
|

|
|
|
|
|
|
* Go to the browser and **check** that the changes are in **Gitlab**.
|
|
|
* Go to the browser and **check** that the changes are in **Github**.
|
|
|
|
|
|

|
|
|
|
... | ... | @@ -419,7 +419,7 @@ If you enter into the Hello folder, the **hello.py** file will be there. |
|
|
|
|
|

|
|
|
|
|
|
Congrats! You have created, running and committed to the Github repo your first python program.
|
|
|
Congrats! You have created, run and committed to the Github repo your first python program.
|
|
|
|
|
|
## Exercises
|
|
|
|
... | ... | |