Git.pdf - Git 9'00 PM Git Statistics 506 Fall 2018\/index.html Git for Version Control Git from the command line Repositories Git for remote repositories

Git.pdf - Git 9'00 PM Git Statistics 506 Fall...

This preview shows page 1 - 3 out of 5 pages.

1/31/19, 9’00 PM Git Page 1 of 5 Git Statistics 506, Fall 2018 (./index.html) Git for Version Control Git from the command line Repositories Git for remote repositories Example (./git_afs_example.html) Exercise Caution Git Configuration Using .gitignore Exercise Resources Using git for homework Git for Version Control A version control system is a tool for managing changes to files over time by efficiently tracking changes all modifications. One of the most popular tools for version control is “git”. Another version control called subversion or SVN is also widely used, but git has become a de facto standard. Git generally is already installed on most Linux-like systems. Version control is essential for projects with multiple people editing the same collection of code. However, it can also help even a single user more effectively and efficiently manage and document their own scripts and programs. Read more about version control and git here (). In particular, you should read: What is version control? () What is git? () All the material under Getting Started (- repository). Git from the command line To begin tracking an existing project, move to the top folder in the project tree and type:
Image of page 1
1/31/19, 9’00 PM Git Page 2 of 5 git init To create a local copy of an existing repository: git clone "url for repo" For example, to clone the “Stats506_F18” repository from gihtub.com: git clone When cloning repositories to which you have push access, I suggest you append your username to the url like below: git clone This will ensure you are granted push permissions and prompted for a password. This is not necessary
Image of page 2
Image of page 3

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture