
Become a Git Expert Fast
Learn Git quickly with this comprehensive tutorial covering topics such as Git clone, commit, push, pull, managing code, and essential tips for effective version control. Discover useful resources and elevate your Git skills today!
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Git Tutorial Van-Thanh Hoang thanhhv@islab.ulsan.ac.kr November 14, 2017
Introduction A distributed version control system Originally developed by Linus Torvalds for the development of the Linux Kernel in 2005 Focus on speed and efficiency 2
Overview Clone git clone <remote url> : clone without submodules git clone --recursive <remote url> : clone with submodules Add: add . : adds all files in the current directory and its sub-directories to the index git add <files> : adds a specific file to the index add -u : adds all changed files to the index (that is, it adds alls files Git knows about and that have changed) 3
Overview Commit commit -a : all changed files (adding every changed file to the index) commit -m "commit message : supply the commit message at the command line commit --amend : edit the commit (that is, the new compreviousmit merges with the old one) Push git push : push to remote repository Pull git pull : get changed files from remote repository 4
Manage your code Create remote repository in Bitbucket/Github Run git clone <remote-url> Copy your files to folder Run git add . Run git commit -m Your message Run git push to push files to remote repository 5
My experiments Manage git ignore file: .gitignore (hidden file) Included files isn t indexed *.so: ignore all .so files Folder/*: ignore all files in folder **/*.so : ignore .so files in all folder of repository Add large and generated files to ignore Commit after a change to trace your code Register your information git config --global user.name "Your Name Comes Here" git config --global user.email you@yourdomain.example.com Store username and password git config credential.helper store git pull (-u) 6
Some resources Tutorial from git scm https://git-scm.com/docs/gittutorial Download command line tool for git: https://git-scm.com/downloads Some gui clients: https://git-scm.com/downloads/guis Some IDE have plugins to work with git 7