Git via the GitHub UI ********************* You can use GitHub Web UI to use GitHub as a Dropbox. Init repository =============== You need to upload your first file to trigger the initialization of the repository. * Login to GitHub * Select your repository * At this step, your repository has not been initialized: the UI does not list any files, nor any button to add a file * Find the link : *uploading an existing file* .. image:: upload.png :scale: 80% :align: center * Then follow the procedure described in the following section Uploading Files =============== * Create a file named "test.txt" on your Desktop * Edit this file and type *Hello* inside * Connect to your repository, it should look like this, with an **Add file** button .. image:: init.png :scale: 80% :align: center * If this button is not available, perform the procedure described in the previous **Init Repository** section. * Click on **Add file > Upload files** * On the new page, drag and drop the file *test.txt* .. image:: add.png :scale: 80% :align: center * You can add some additional information in the textboxes: * First line: some words to describe this commit - *TP1* (optional) * Second TextBox: you can add more detailed information * Click on the **Commit** button * Now the main repository page lists the files in the repository .. image:: list.png :scale: 80% :align: center View and edit file ================== * Click on the name of your file * In this new interface, you can see the content of *test.txt* .. image:: view.png :scale: 80% :align: center * Click on the Edit icon (pencil icon) * Change the text to "Hello World!" * Click on the *Commit Changes* button * The content of the file has been updated: .. image:: hello.png :scale: 80% :align: center * Edit the file and change the content for "Bye Bye" and commit File history ============ * Click on the *History* Button to see all the versions of this file .. image:: History.png :scale: 80% :align: center * By clicking on the icons highlighted in orange, you can see each version of the file Upload a new version ==================== If you want to upload a new version of the file from your computer: * In the main page of the repository * Click on *Add file > Upload files* and drag *test.txt* from your desktop * As the names are identical, this commit creates a fourth version of *test.txt* in the repository