Path: blob/master/material/Syncing_fork.ipynb
934 views
GIT Usage
See "Guia sencilla"
In summary
Clone the repository with
[1] After some time working with it, you may save the modified notebooks elsewhere. Then, discard your changes with
[2] Donwload the updated repository files with
Go to [1] and [2] for further changes
Homework assignments management
There is an special repository to the evaluation of the course:
https://github.com/ComputationalMethods/Evaluacion_2021-1
Fisrt make a fork of the official repository in GitHub
Inside the repository, you must create a folder with your identification number and go there. Example:
Copy your Tarea or Examen there, and rename the file, e.g
old_name.ipynb
by adding to the beggining eitherTarea_NN_
orExamen_NN_
, whereNN
is the number of the Tarea or Examen. Example:
Add the file to cloned repository. Example:
Commit the changes
Upload the changes to your forked repository
Install JupyterLab and GIT in your android cellphone
See this help
Fork official repository
This notebook explains the recommended way to use this repository. If you only want to visualize the notebooks trough the viewer in GitHub, you can safely ignore this section.
First make a fork of the official repository in GitHub
Clone your own copy of the repository with
[1] After work some time working with the repository you would like to register your changes with
Or discard your changes with
[2] Check for possible changes before send your commit
[3] Send changes to repository
[4] Go to [1] for further changes
Sync with official repository
ONLY for the first time: Follow the instructions for LINUX in Configuring a remote for a fork
After that, follow the instructions in Syncing a fork
Summary of commands Only the first time:
And before each pull request:
or just execute
To update the forked repository in GitHub, just use or just execute
After finish your work, save your changes as new notebook and to clean to the initial state use:
FAQ
How to remove last commit from a remote git repository? If necessary make a clone of the broken repository