SlideShare a Scribd company logo
1 of 21
Download to read offline
PRESENTED BY
SAID ZIANI
“Ce qui ne se partage pas, se perd”
VCS (Version Control System)
VCS allows you to revert selected files back to a previous state, revert the entire project back to a
previous state, compare changes over time, see who last modified something that might be
causing a problem, who introduced an issue and when, and more.
Some famous VCS
BENEFITS OF VCS
- A complete long-term change history of every file
- Going back to previous versions
- See who last modified something that might be causing a
problem
- Traceability and bug tracking
- Branching and merging
- Collaborative Team work and Conflict resolution
- Remote work
- etc...
“Ce qui ne se partage pas, se perd”
PERFORMANCE:
- Git focuses on the file content itself, Fully Distributed, Fast and Reliable
SECURITY:
- Relationships between files and directories, versions, tags and commits, all of
these objects are secured with SHA1.
FLEXIBILITY:
- Support for nonlinear development workflows, Efficient in both Small and
Large projects, Compatibility with many existing systems.
WHAT IS GIT ?
Git is a mature, actively maintained open source project originally developed in 2005 by Linus
Torvalds. Developers who have worked with Git are well represented in the pool of available
software development talent and it works well on a wide range of operating systems and IDEs.
“Ce qui ne se partage pas, se perd”
COMPANIES AND PROJECTS USING GIT
“Ce qui ne se partage pas, se perd”
INSTALL GIT
Linux :
$ sudo apt install git
Windows :
Download: https://git-scm.com/download/win
Mac OS :
Download: https://git-scm.com/download/mac
“Ce qui ne se partage pas, se perd”
GIT configuration
$ git config --global user.name "Foo Boo"
$ git config --global user.email fooboo@host.com
“Ce qui ne se partage pas, se perd”
Start a new repository
$ git init
After creating a new project directory,
“Ce qui ne se partage pas, se perd”
Clone an existing project
$ git clone /path/myawesomeproject
Locally:
Remote server:
$ git clone username@host:/path/myawesomeproject
“Ce qui ne se partage pas, se perd”
GIT workflow
“Ce qui ne se partage pas, se perd”
Saving changes
$ git add myfile.ext
Add changes to the index:
Commit changes with UNDERSTANDABLE and EXPLICIT message
$ git commit -m “add myfile.ext to the repo”
“Ce qui ne se partage pas, se perd”
Inspecting repository
$ git status
State of working directory
List the project history
$ git log [-p]
or
$ git log --oneline
“Ce qui ne se partage pas, se perd”
Inspecting repository
$ git blame myfile.ext
History of all changes on specific file
History of all changes on specific commit
$ git show commit_hash
$ git diff commit_hash_1 commit_hash_2
Difference between two commits
“Ce qui ne se partage pas, se perd”
GIT branching model
“Ce qui ne se partage pas, se perd”
GIT branching model
$ git checkout -b feature_name
Create a new branch and switch to it
Switch to another branch
$ git checkout another_feature_name
Delete an existing branch
$ git branch -d feature_name
“Ce qui ne se partage pas, se perd”
Merging Branches
$ git merge another_feature_name
$ git checkout feature_name
“Ce qui ne se partage pas, se perd”
Undoing commits and changes
$ git checkout commit_hash
Checkout commit
Revert commit
$ git revert commit_hash
Reset files to specific commit
$ git reset --hard commit_hash
“Ce qui ne se partage pas, se perd”
Working on a single central repository
$ git remote add origin remote_server
Connect local repository to a remote server
Push changes to a remote server
$ git push origin branch_name
Pull change from a remote server
$ git pull origin branch_name
“Ce qui ne se partage pas, se perd”
.gitignore
A .gitignore file specifies intentionally untracked files that GIT should
ignore. Files already tracked by GIT are not affected.
What to add to .gitignore ?
- Operating System Files (exp : thumbs.db)
- IDE project files (exp : .idea)
- Language and Framework Files (exp : npm-debug.log)
- Credentials (exp : wp-config.php)
“Ce qui ne se partage pas, se perd”
Introduction to Github
GitHub is a web-based hosting service for
VCS using git. It is mostly used for
computer code. It provides access
control and several collaboration
features such as bug tracking, feature
requests, task management, etc.
“Ce qui ne se partage pas, se perd”
Thank you!

More Related Content

What's hot

How we use Bitbucket to build Bitbucket
How we use Bitbucket to build BitbucketHow we use Bitbucket to build Bitbucket
How we use Bitbucket to build BitbucketShunsuke (Sean) Osawa
 
Difference between gitlab vs github vs bitbucket
Difference between gitlab vs github vs bitbucketDifference between gitlab vs github vs bitbucket
Difference between gitlab vs github vs bitbucketAcodez IT Solutions
 
AtlasCamp 2015: Bitbucket: Building kick-ass tools for 2.5M developers
AtlasCamp 2015:  Bitbucket: Building kick-ass tools for 2.5M developersAtlasCamp 2015:  Bitbucket: Building kick-ass tools for 2.5M developers
AtlasCamp 2015: Bitbucket: Building kick-ass tools for 2.5M developersAtlassian
 
2010-11-27 weekly meeting
2010-11-27 weekly meeting2010-11-27 weekly meeting
2010-11-27 weekly meetingTeam POPONG
 
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence Parag Gajbhiye
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitE Carter
 
GitHub Actions with Node.js
GitHub Actions with Node.jsGitHub Actions with Node.js
GitHub Actions with Node.jsStefan Stölzle
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHubDSCVSSUT
 
Rundeck: The missing tool
Rundeck: The missing toolRundeck: The missing tool
Rundeck: The missing toolArtur Martins
 
Git & version control crash course
Git & version control crash course Git & version control crash course
Git & version control crash course Eslam Saeed
 

What's hot (20)

How we use Bitbucket to build Bitbucket
How we use Bitbucket to build BitbucketHow we use Bitbucket to build Bitbucket
How we use Bitbucket to build Bitbucket
 
Git with bitbucket
Git with bitbucketGit with bitbucket
Git with bitbucket
 
Version controll.pptx
Version controll.pptxVersion controll.pptx
Version controll.pptx
 
Git basics
Git basicsGit basics
Git basics
 
BitBucket presentation
BitBucket presentationBitBucket presentation
BitBucket presentation
 
Difference between gitlab vs github vs bitbucket
Difference between gitlab vs github vs bitbucketDifference between gitlab vs github vs bitbucket
Difference between gitlab vs github vs bitbucket
 
AtlasCamp 2015: Bitbucket: Building kick-ass tools for 2.5M developers
AtlasCamp 2015:  Bitbucket: Building kick-ass tools for 2.5M developersAtlasCamp 2015:  Bitbucket: Building kick-ass tools for 2.5M developers
AtlasCamp 2015: Bitbucket: Building kick-ass tools for 2.5M developers
 
GitHub for partners
GitHub for partnersGitHub for partners
GitHub for partners
 
2010-11-27 weekly meeting
2010-11-27 weekly meeting2010-11-27 weekly meeting
2010-11-27 weekly meeting
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 
Git basics
Git basicsGit basics
Git basics
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
 
Github in Action
Github in ActionGithub in Action
Github in Action
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
 
GitHub Actions with Node.js
GitHub Actions with Node.jsGitHub Actions with Node.js
GitHub Actions with Node.js
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
 
Rundeck: The missing tool
Rundeck: The missing toolRundeck: The missing tool
Rundeck: The missing tool
 
Git & version control crash course
Git & version control crash course Git & version control crash course
Git & version control crash course
 

Similar to Git workshop

Version control with GIT
Version control with GITVersion control with GIT
Version control with GITZeeshan Khan
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Brian K. Vagnini
 
Git cheat sheet__grey
Git cheat sheet__greyGit cheat sheet__grey
Git cheat sheet__greyKing Hom
 
Git cheat sheet__white
Git cheat sheet__whiteGit cheat sheet__white
Git cheat sheet__whiteKing Hom
 
Git cheat sheet_dark
Git cheat sheet_darkGit cheat sheet_dark
Git cheat sheet_darkKing Hom
 
Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)chenghlee
 
Git_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_GuidewireGit_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_GuidewireGandhi Ramu
 
Understanding about git
Understanding about gitUnderstanding about git
Understanding about gitSothearin Ren
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github Max Claus Nunes
 
Learning git
Learning gitLearning git
Learning gitSid Anand
 

Similar to Git workshop (20)

Introduction git
Introduction gitIntroduction git
Introduction git
 
Git and github
Git and githubGit and github
Git and github
 
Git and Github
Git and GithubGit and Github
Git and Github
 
Git 101
Git 101Git 101
Git 101
 
Version control with GIT
Version control with GITVersion control with GIT
Version control with GIT
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Git cheat sheet__grey
Git cheat sheet__greyGit cheat sheet__grey
Git cheat sheet__grey
 
Git cheat sheet__white
Git cheat sheet__whiteGit cheat sheet__white
Git cheat sheet__white
 
Git cheat sheet_dark
Git cheat sheet_darkGit cheat sheet_dark
Git cheat sheet_dark
 
Git101
Git101Git101
Git101
 
Git introduction
Git introductionGit introduction
Git introduction
 
簡單介紹git
簡單介紹git簡單介紹git
簡單介紹git
 
Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)
 
Git Mastery
Git MasteryGit Mastery
Git Mastery
 
Git_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_GuidewireGit_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_Guidewire
 
Understanding about git
Understanding about gitUnderstanding about git
Understanding about git
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
Learning git
Learning gitLearning git
Learning git
 

Recently uploaded

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 

Recently uploaded (20)

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 

Git workshop

  • 2. “Ce qui ne se partage pas, se perd” VCS (Version Control System) VCS allows you to revert selected files back to a previous state, revert the entire project back to a previous state, compare changes over time, see who last modified something that might be causing a problem, who introduced an issue and when, and more. Some famous VCS
  • 3. BENEFITS OF VCS - A complete long-term change history of every file - Going back to previous versions - See who last modified something that might be causing a problem - Traceability and bug tracking - Branching and merging - Collaborative Team work and Conflict resolution - Remote work - etc... “Ce qui ne se partage pas, se perd”
  • 4. PERFORMANCE: - Git focuses on the file content itself, Fully Distributed, Fast and Reliable SECURITY: - Relationships between files and directories, versions, tags and commits, all of these objects are secured with SHA1. FLEXIBILITY: - Support for nonlinear development workflows, Efficient in both Small and Large projects, Compatibility with many existing systems. WHAT IS GIT ? Git is a mature, actively maintained open source project originally developed in 2005 by Linus Torvalds. Developers who have worked with Git are well represented in the pool of available software development talent and it works well on a wide range of operating systems and IDEs. “Ce qui ne se partage pas, se perd”
  • 5. COMPANIES AND PROJECTS USING GIT “Ce qui ne se partage pas, se perd”
  • 6. INSTALL GIT Linux : $ sudo apt install git Windows : Download: https://git-scm.com/download/win Mac OS : Download: https://git-scm.com/download/mac “Ce qui ne se partage pas, se perd”
  • 7. GIT configuration $ git config --global user.name "Foo Boo" $ git config --global user.email fooboo@host.com “Ce qui ne se partage pas, se perd”
  • 8. Start a new repository $ git init After creating a new project directory, “Ce qui ne se partage pas, se perd”
  • 9. Clone an existing project $ git clone /path/myawesomeproject Locally: Remote server: $ git clone username@host:/path/myawesomeproject “Ce qui ne se partage pas, se perd”
  • 10. GIT workflow “Ce qui ne se partage pas, se perd”
  • 11. Saving changes $ git add myfile.ext Add changes to the index: Commit changes with UNDERSTANDABLE and EXPLICIT message $ git commit -m “add myfile.ext to the repo” “Ce qui ne se partage pas, se perd”
  • 12. Inspecting repository $ git status State of working directory List the project history $ git log [-p] or $ git log --oneline “Ce qui ne se partage pas, se perd”
  • 13. Inspecting repository $ git blame myfile.ext History of all changes on specific file History of all changes on specific commit $ git show commit_hash $ git diff commit_hash_1 commit_hash_2 Difference between two commits “Ce qui ne se partage pas, se perd”
  • 14. GIT branching model “Ce qui ne se partage pas, se perd”
  • 15. GIT branching model $ git checkout -b feature_name Create a new branch and switch to it Switch to another branch $ git checkout another_feature_name Delete an existing branch $ git branch -d feature_name “Ce qui ne se partage pas, se perd”
  • 16. Merging Branches $ git merge another_feature_name $ git checkout feature_name “Ce qui ne se partage pas, se perd”
  • 17. Undoing commits and changes $ git checkout commit_hash Checkout commit Revert commit $ git revert commit_hash Reset files to specific commit $ git reset --hard commit_hash “Ce qui ne se partage pas, se perd”
  • 18. Working on a single central repository $ git remote add origin remote_server Connect local repository to a remote server Push changes to a remote server $ git push origin branch_name Pull change from a remote server $ git pull origin branch_name “Ce qui ne se partage pas, se perd”
  • 19. .gitignore A .gitignore file specifies intentionally untracked files that GIT should ignore. Files already tracked by GIT are not affected. What to add to .gitignore ? - Operating System Files (exp : thumbs.db) - IDE project files (exp : .idea) - Language and Framework Files (exp : npm-debug.log) - Credentials (exp : wp-config.php) “Ce qui ne se partage pas, se perd”
  • 20. Introduction to Github GitHub is a web-based hosting service for VCS using git. It is mostly used for computer code. It provides access control and several collaboration features such as bug tracking, feature requests, task management, etc. “Ce qui ne se partage pas, se perd”