Skip to content

devildonkey1392/Git-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Git-Tutorial

Installation

  • Windows
    1. image
    2. image
    3. image
    4. image
    5. image
    6. image
    7. image
    8. image
    9. image
    10. image
    11. image
    12. image
    13. image
    14. image
    15. image
    16. image
    17. image
    • Set PATH
      1. image
      2. image
  • Linux
    $ sudo apt-get install git
  • Verification
    $ git --version

Command Line in Windows

Right-click in a target directory and click Git Bash Here to create a terminal.

image

Configuration

  • Username
    $ git config --global user.name <username>
    ex : git config --global user.name HappyDog
  • Email
    $ git config --global user.email <email>
    ex : git config --global user.email [email protected]
  • Verification
    $ git config --list

Repository Creation in Github

  1. image
  2. image

Commands

  • Clone a repository
    $ git clone <repo>
    1. Copy the source of a repository in github.

      image
    2. Clone this repository via command.

      image
  • Push a revision to your repository
    • Add revised files
      $ git add <file1> <file2> ... or git add . (. means all revised files)
    • Commit this revision
      $ git commit -m "<your comment>"
    • Push this revision to your repository
      $ git push

    1. image

    2. image

    3. image
  • Pull the latest version from the repository
    If you are co-working, you must retrieve the latest version in your repository before you push a revision.
    $ git pull

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published