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

    _images/upload.png
  • 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

    _images/init.png
    • 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

    _images/add.png
  • 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

    _images/list.png

View and edit file

  • Click on the name of your file

  • In this new interface, you can see the content of test.txt

    _images/view.png
  • 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:

    _images/hello.png
  • 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

    _images/History.png
  • 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