ufp2018 / Git-Basics

A collection of Git resources and commands
0 stars 0 forks source link

Git-Basics

Helpful websites

Add more if you want.

Using the web interface

  1. Download the zip file (click green button).
  2. Unzip and edit files on your machine.
  3. Go back to the repo and click the upload file button. Upload the files you edited.
  4. Choose to commit directly to the master branch, or opt to submit a pull request and have someone else resolve conflicts.
  5. If you committed directly, you might need to fix conflicts. In the web interface, you will be prompted fix conflicts. To do this, search the conflicted file for <<<<<<<, =======, or >>>>>>>. It will look something like this;
    If you have questions, please
    <<<<<<< HEAD
    open an issue
    =======
    ask your question in IRC.
    >>>>>>> branch-a
    Decide if you want to keep it. 

    At this point, you decide if you want to keep the old content

    <<<<<<< HEAD
    open an issue
    =======

    or the new content

    =======
    ask your question in IRC.
    >>>>>>> branch-a

    To do this just delete what you don't want, including the <<<<<<<, =======, or >>>>>>>. Then commit your changes. More info on merging can be found here,

Using terminal or GitBash

This is just a basic protocol for using git via command line. This procedure will let you keep a local version of the files on your machine.