SlideShare a Scribd company logo
1 of 12
Git workflow mini training

        Andrey Semikov, EPAM Systems
Roadmap for the GIT starter




1) Generating ssh keys
2) Create your own branch
3) Resolving the conflicts
4) Merging
5) Stash
Generating ssh keys
• Open gitbash
• Launch ssh-keygen.exe
• Copy .ssh/id_rsa.pub file to
  somefolder/my_last_name.pub
• Send somefolder/my_last_name.pub to me
Ssh keys generation
Create folder git-workshop
• Create folder “git-workshop”
• Initialize a new repository git init
• Add a new remote repository: git remote add
  origin gitosis@lifeline.su:git-workshop.git
Fetch the project
• Run command git fetch

• You will fetch all the repository with all branches
Workflow scheme
   master                      dev   Your     Time

            git merge dev            branch




                           r
                    m aste
            ebase
      git r
Check status
• git status
Create your own branch
• git branch feature_JIRA-TASK-1234_make-
  cool-website
• git checkout feature_JIRA-TASK-1234_make-
  cool-website
• Or just git checkout -b feature_JIRA-TASK-
  1234_make-cool-website
• Make changes, create files, adjust files
• Add new files to the repo: git add <filename>
Committing
• You can use git commit –m “My commit
  message” –a command to make local commit
Pushing to server
• Pushing is as easy: git push origin
  <branch_name>

Switch to dev branch
• git checkout dev
Pulling the changes
• git pull origin dev
Rebasing from dev
• We need to switch back to our own branch: git
  checkout <your_branch>
• Rebase from dev: git rebase dev
Resolving the conflicts
• git add <resolved_filename>
• git commit –m ”Conflict resolved” -a
Merging into dev
• Go back to dev: git checkout dev
• Merge your changes into dev: git merge
  <your_branch> --no-ff

Pushing to dev server
• git push origin dev

Merging into master
• Switch to master: git checkout master
• Merge with dev: git merge dev
Push to master branch
• git push origin master

Stash
•   git checkout <your branch>
•   Make changes in files
•   git stash save “My humble changes”
•   Check your repo status out: git status
•   Look up all your stashes: git stash list
•   Recover your stash: git stash apply <stash_#>
What’s then?
 What




Practice!!!

More Related Content

What's hot

What's hot (20)

Introduction to git & GitHub
Introduction to git & GitHubIntroduction to git & GitHub
Introduction to git & GitHub
 
Git learning
Git learningGit learning
Git learning
 
Git tutorial
Git tutorial Git tutorial
Git tutorial
 
Git basic
Git basicGit basic
Git basic
 
Learning git
Learning gitLearning git
Learning git
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
 
Git basics
Git basicsGit basics
Git basics
 
Version Control History and Git Basics
Version Control History and Git BasicsVersion Control History and Git Basics
Version Control History and Git Basics
 
Git real slides
Git real slidesGit real slides
Git real slides
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
 
Introduction To Git
Introduction To GitIntroduction To Git
Introduction To Git
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
 
Git presentation, Viktor Pyskunov
Git presentation, Viktor PyskunovGit presentation, Viktor Pyskunov
Git presentation, Viktor Pyskunov
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With Git
 
Git and GitHub crash course
Git and GitHub crash courseGit and GitHub crash course
Git and GitHub crash course
 
Git101
Git101Git101
Git101
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
 
Basic Git commands
Basic Git commandsBasic Git commands
Basic Git commands
 
Intro to Git, GitHub, and Devpost
Intro to Git, GitHub, and DevpostIntro to Git, GitHub, and Devpost
Intro to Git, GitHub, and Devpost
 
Git and Github
Git and GithubGit and Github
Git and Github
 

Viewers also liked

Viewers also liked (17)

Shytikov git magic eng
Shytikov git magic engShytikov git magic eng
Shytikov git magic eng
 
Git pavel grushetsky
Git pavel grushetskyGit pavel grushetsky
Git pavel grushetsky
 
Git, an Illustrated Primer
Git, an Illustrated PrimerGit, an Illustrated Primer
Git, an Illustrated Primer
 
Git: Git'ing the Basic
Git: Git'ing the BasicGit: Git'ing the Basic
Git: Git'ing the Basic
 
Git Workflow Practice
Git Workflow PracticeGit Workflow Practice
Git Workflow Practice
 
Git flow workflow example
Git flow workflow exampleGit flow workflow example
Git flow workflow example
 
Checkitmobile Git Workshop
Checkitmobile Git WorkshopCheckitmobile Git Workshop
Checkitmobile Git Workshop
 
Subversion
SubversionSubversion
Subversion
 
Workflows using Git GitHub | Edureka
Workflows using Git GitHub | EdurekaWorkflows using Git GitHub | Edureka
Workflows using Git GitHub | Edureka
 
SOURCE CODE MANAGEMENT SYSTEM (GITHUB)
SOURCE CODE MANAGEMENT SYSTEM (GITHUB)SOURCE CODE MANAGEMENT SYSTEM (GITHUB)
SOURCE CODE MANAGEMENT SYSTEM (GITHUB)
 
Git workflow in agile development
Git workflow in agile developmentGit workflow in agile development
Git workflow in agile development
 
Introducing Git to your FTP workflow
Introducing Git to your FTP workflow Introducing Git to your FTP workflow
Introducing Git to your FTP workflow
 
A painless git workflow
A painless git workflowA painless git workflow
A painless git workflow
 
Source Code Management systems
Source Code Management systemsSource Code Management systems
Source Code Management systems
 
CI with Gitlab & Docker
CI with Gitlab & DockerCI with Gitlab & Docker
CI with Gitlab & Docker
 
Git workflow step by step
Git workflow step by stepGit workflow step by step
Git workflow step by step
 
Using GitLab CI
Using GitLab CIUsing GitLab CI
Using GitLab CI
 

Similar to Git workflow libre semikov

Git Introductive
Git IntroductiveGit Introductive
Git Introductive
Adham Saad
 

Similar to Git workflow libre semikov (20)

Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
Git101
Git101Git101
Git101
 
Git Tutorial I
Git Tutorial IGit Tutorial I
Git Tutorial I
 
Let's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHubLet's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHub
 
簡單介紹git
簡單介紹git簡單介紹git
簡單介紹git
 
Git walkthrough
Git walkthroughGit walkthrough
Git walkthrough
 
.Git for WordPress Developers
.Git for WordPress Developers.Git for WordPress Developers
.Git for WordPress Developers
 
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
Git workshop - University of Moratuwa, Department of Computer Science and Eng...Git workshop - University of Moratuwa, Department of Computer Science and Eng...
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
 
Git session Dropsolid.com
Git session Dropsolid.comGit session Dropsolid.com
Git session Dropsolid.com
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using Git
 
Introduction into Git
Introduction into GitIntroduction into Git
Introduction into Git
 
Princeton jug git_github
Princeton jug git_githubPrinceton jug git_github
Princeton jug git_github
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
 
Basic git
Basic gitBasic git
Basic git
 
The Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubThe Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHub
 
Git Introductive
Git IntroductiveGit Introductive
Git Introductive
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
Getting with GIT
Getting with GITGetting with GIT
Getting with GIT
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 

Recently uploaded

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 

Git workflow libre semikov

  • 1. Git workflow mini training Andrey Semikov, EPAM Systems
  • 2. Roadmap for the GIT starter 1) Generating ssh keys 2) Create your own branch 3) Resolving the conflicts 4) Merging 5) Stash
  • 3. Generating ssh keys • Open gitbash • Launch ssh-keygen.exe • Copy .ssh/id_rsa.pub file to somefolder/my_last_name.pub • Send somefolder/my_last_name.pub to me
  • 5. Create folder git-workshop • Create folder “git-workshop” • Initialize a new repository git init • Add a new remote repository: git remote add origin gitosis@lifeline.su:git-workshop.git Fetch the project • Run command git fetch • You will fetch all the repository with all branches
  • 6. Workflow scheme master dev Your Time git merge dev branch r m aste ebase git r
  • 7. Check status • git status Create your own branch • git branch feature_JIRA-TASK-1234_make- cool-website • git checkout feature_JIRA-TASK-1234_make- cool-website • Or just git checkout -b feature_JIRA-TASK- 1234_make-cool-website • Make changes, create files, adjust files • Add new files to the repo: git add <filename>
  • 8. Committing • You can use git commit –m “My commit message” –a command to make local commit Pushing to server • Pushing is as easy: git push origin <branch_name> Switch to dev branch • git checkout dev Pulling the changes • git pull origin dev
  • 9. Rebasing from dev • We need to switch back to our own branch: git checkout <your_branch> • Rebase from dev: git rebase dev Resolving the conflicts • git add <resolved_filename> • git commit –m ”Conflict resolved” -a
  • 10. Merging into dev • Go back to dev: git checkout dev • Merge your changes into dev: git merge <your_branch> --no-ff Pushing to dev server • git push origin dev Merging into master • Switch to master: git checkout master • Merge with dev: git merge dev
  • 11. Push to master branch • git push origin master Stash • git checkout <your branch> • Make changes in files • git stash save “My humble changes” • Check your repo status out: git status • Look up all your stashes: git stash list • Recover your stash: git stash apply <stash_#>