The document provides information on version control systems and Git concepts like distributed version control, forking and cloning repositories, adding collaborators, branching and merging in Git. It includes step-by-step instructions for setting up a Git demo to showcase creating a repository, adding and committing files, connecting to a remote repository on GitHub, forking a project and cloning it locally, creating and switching branches, adding a collaborator, pulling changes, and merging branches.
Git is a distributed revision control system that is widely used in the software development industry. The presentation was used in a lecture delivered in BITS-Pilani, India. The lecture served as a basic crash course on Git.
First, it sets off with a guide to install and configure git on various platforms.
Then, the basic working concepts of Git are explained.
This is followed by a detailed step-by-step guided demonstration of a sample workflow in Git.
Afterwards, Some auxillary commands that are frequently used are discussed briefly.
Finally, basic concepts of branching and merging are detailed.
The presentation ends with a few possible merge conflicts that occur in Git.
Github - Git Training Slides: FoundationsLee Hanxue
Â
Slide deck with detailed step breakdown that explains how git works, together with simple examples that you can try out yourself. Slides originated from http://teach.github.com/articles/course-slides/
Author: https://twitter.com/matthewmccull
Git is a distributed revision control system that is widely used in the software development industry. The presentation was used in a lecture delivered in BITS-Pilani, India. The lecture served as a basic crash course on Git.
First, it sets off with a guide to install and configure git on various platforms.
Then, the basic working concepts of Git are explained.
This is followed by a detailed step-by-step guided demonstration of a sample workflow in Git.
Afterwards, Some auxillary commands that are frequently used are discussed briefly.
Finally, basic concepts of branching and merging are detailed.
The presentation ends with a few possible merge conflicts that occur in Git.
Github - Git Training Slides: FoundationsLee Hanxue
Â
Slide deck with detailed step breakdown that explains how git works, together with simple examples that you can try out yourself. Slides originated from http://teach.github.com/articles/course-slides/
Author: https://twitter.com/matthewmccull
A Git tutorial for rookies that covers most aspects of basic Git usage for a medium sized project.
This was originally a semestral lecture given at the TU Wien for the course "Software Engineering and Project Management"
GitHub is a Git repository hosting service, but it adds many of its own features. While Git is a command line tool, GitHub provides a Web-based graphical interface. It also provides access control and several collaboration features, such as a wikis and basic task management tools for every project.
Presentation on the utility of git/GitHub for making scientific research findable, accessible, interoperable, and reusable.
Also includes a tutorial to the most essential features of git/GitHub.
Git
A detailed description about version control tool for tracking changes in computer files and coordinating work on those files among multiple people. It is primarily used for source-code management in software development, but it can be used to keep track of changes in any set of files.in windows
A Git tutorial for rookies that covers most aspects of basic Git usage for a medium sized project.
This was originally a semestral lecture given at the TU Wien for the course "Software Engineering and Project Management"
GitHub is a Git repository hosting service, but it adds many of its own features. While Git is a command line tool, GitHub provides a Web-based graphical interface. It also provides access control and several collaboration features, such as a wikis and basic task management tools for every project.
Presentation on the utility of git/GitHub for making scientific research findable, accessible, interoperable, and reusable.
Also includes a tutorial to the most essential features of git/GitHub.
Git
A detailed description about version control tool for tracking changes in computer files and coordinating work on those files among multiple people. It is primarily used for source-code management in software development, but it can be used to keep track of changes in any set of files.in windows
This ppt will give you a complete understanding of the Git and GitHub. Also you will get to know the basic terminology which is required when you deal with Git and GitHub
In one of our weekly training, weâve talked about Git. Here is a quick overview of the main concepts, basic commands and branching strategy, how to work with Git, how to contribute to an OSS project, âŠ
This is a series in DevOps where we can go through the DevOps practices(Version Control-CI-CD-Agile-IaaC-monitoring-microservices-...etc) with Microsoft technologies and the edge technologies
this a good start in git usage and it is perfect for beginners after study it. you will be able to start using GITand go to advance usage this from my 7 years of experience git is the power of DevOps
đ„ Cyber Security Engineer Vs Ethical Hacker: What's The Difference | Cybersec...Simplilearn
Â
In this video on "Cyber Security Engineer Vs Ethical Hacker: What's The Difference," we'll dive deep into the fascinating world of cybersecurity. We'll explore the roles, qualifications, and responsibilities that set Cyber Security Engineers and Ethical Hackers apart. From managing production environments to reporting client usage and tackling complex problem-solving scenarios, we'll dissect the key distinctions between these two vital roles. Not only that, we'll reveal insights into the average salaries in these fields as well.
Top 10 Companies Hiring Machine Learning Engineer | Machine Learning Jobs | A...Simplilearn
Â
This video is based on Top 10 Companies Hiring Machine Learning Engineer, we'll delve into the dynamic realm of Machine Learning Engineering and explore the Top 10 Companies that are currently at the forefront of hiring in 2023. From industry giants like Google, Apple, and Microsoft to other innovative companies, we will cover all of that, join us as we uncover the exciting opportunities that await ML Engineers. Discover how Amazon, Facebook, and others are shaping the landscape of artificial intelligence and machine learning technologies.
How to Become Strategy Manager 2023 ? | Strategic Management | Roadmap | Simp...Simplilearn
Â
In this video on Strategic Manager Roadmap for 2023, we're diving deep into the realm of strategic management and uncovering the path to becoming a skilled strategic manager in 2023. From understanding the fundamentals of strategy management to exploring the career opportunities it offers, we've got you covered. Discover the essential skills that set strategic managers apart and gain insights into their pivotal roles and responsibilities. Follow our step-by-step guide to walk on your journey toward becoming a proficient strategic manager.
Top 20 Devops Engineer Interview Questions And Answers For 2023 | Devops Tuto...Simplilearn
Â
In this video on Top 20 Devops Engineer Interview Questions And Answers For 2023. We will dive into the realm of DevOps interview questions. Gain insights into essential concepts, methodologies, and practices driving modern software development and collaboration between teams. Whether you're new or experienced, these discussions will equip you with valuable knowledge to excel in this dynamic field.
đ„ Big Data Engineer Roadmap 2023 | How To Become A Big Data Engineer In 2023 ...Simplilearn
Â
This video is based on Big Data Engineer Roadmap 2023. In this informative session, we will dive into the fundamentals of Big Data Engineering. Join us as we explore the role and responsibilities of a Big Data Engineer, highlighting the key skills required in this field. Additionally, we provide a step-by-step guide on how to become a proficient Big Data Engineer. Don't miss out on this essential information for aspiring data professionals!
đ„ AI Engineer Resume For 2023 | CV For AI Engineer | AI Engineer CV 2023 | Si...Simplilearn
Â
In this video on AI Engineer Resume For 2023, We delve into the essential components of an AI Engineer Resume for 2023. Learn the intricacies of Resume formatting, structure, and content to craft a compelling application. From resume summaries to objectives, gain insights into creating captivating opening statements. Uncover the key skills demanded in the AI engineering sector. Navigate effectively through presenting your educational background. Elevate your resume and excel in your pursuit of an AI Engineering role with the insights gained from this informative session.
đ„ Top 5 Skills For Data Engineer In 2023 | Data Engineer Skills Required For ...Simplilearn
Â
This video is based on Top 5 Skills For Data Engineer In 2023. In this video, we delve into the role of Data Engineers and the future salary trends. Learn about key skills like Big Data technologies, Data Modeling, and proficiency in programming languages that are crucial for excelling in the field. Stay ahead by mastering the expertise needed to thrive as a Data Engineer in the dynamic landscape of data-driven decision-making.
đ„ 6 Reasons To Become A Data Engineer | Why You Should Become A Data Engineer...Simplilearn
Â
đ„Link to watch video: https://youtu.be/m9ViGf3iPHo
đ„ Post Graduate Program In Data Engineering: https://www.simplilearn.com/pgp-data-engineering-certification-training-course?utm_campaign=28July2023ReasonsToBecomeADataEngineer&utm_medium=Descriptionff&utm_source=youtube
This video is based on 6 Reasons To Become A Data Engineer. In this video, we delve into the role of a Data Engineer and present 6 compelling reasons why it's an incredible career choice. From building cutting-edge solutions to unlocking valuable insights, join us as we embark on an exciting journey through the world of Data Engineering. If you're seeking a dynamic and impactful profession, don't miss out on the opportunities that await you as a Data Engineer!
Project Manager vs Program Manager - Whatâs the Difference ? | Project Manage...Simplilearn
Â
https://www.youtube.com/watch?v=9z0BNicnBjw
In this informative video on Project Manager vs Program Manager - Whatâs the Difference ?, we will explore the fundamentals of Project Management and Program Management. Discover the definitions of both disciplines, their unique characteristics, and key differences. Learn about the essential skills and competencies required for successful execution in each role. Whether you're a professional seeking career growth or a curious learner, this concise breakdown will provide valuable insights. Stay tuned and expand your knowledge of these crucial management practices!
Deloitte Interview Questions And Answers | Top 45 Deloitte Interview Question...Simplilearn
Â
https://www.youtube.com/watch?v=Cfj0y6xIo48
Deloitte is one of the reputed âBig Fourâ accounting companies and the largest professional service provider by revenue as well as the number of professionals. With more than 263900 professionals worldwide, the organisation provides financial advising, corporate risk, consulting, tax, and audit services. Deloitte generated revenue of a record USD 38.8 billion in the financial year 2017 and is ranked as the sixth-largest private company in the United States as of 2016. In this video session on Deloitte interview questions and answers, we will go through different interview questions often asked during the interview process at Deloitte.
đ„ Deep Learning Roadmap 2024 | Deep Learning Career Path 2024 | SimplilearnSimplilearn
Â
This video on "Deep Learning Roadmap for 2024" offers a comprehensive guide to becoming a DL engineer. This "deep Learning Career Path 2024" provides valuable knowledge about crucial programming languages and mathematical concepts necessary for attaining proficiency in DL engineering. The field of dL presents captivating career prospects across different industries and sectors. Exciting roles such as DL engineers, ML engineers, data scientists, NLP engineers, AI engineers, and more offer the opportunity to work with advanced technologies and contribute to AI innovation.
In this ChatGPT in Cybersecurity video, we delve into the role of ChatGPT in the realm of cybersecurity. Discover how this powerful language model assists in threat detection, vulnerability assessment, and incident response. Gain insights into the innovative ways ChatGPT is shaping the future of cybersecurity. Join us to explore the fascinating intersection of AI and cybersecurity.
In this SQL Injection video, we delve into the world of SQL Injection attacks, one of the most prevalent threats to databases today. Join us as we explore the inner workings of this malicious technique and understand how hackers exploit vulnerabilities in web applications to gain unauthorized access to sensitive data. With step-by-step examples and demonstrations, we provide comprehensive insights on the various types of SQL Injection attacks and their potential consequences. Moreover, we equip you with essential knowledge and countermeasures to safeguard your database against these attacks, ensuring the security of your valuable information. Don't let your data fall victim to SQL Injectionâwatch this video now!
Top 5 High Paying Cloud Computing Jobs in 2023 Simplilearn
Â
This video, "Top 5 High Paying Cloud Computing Jobs In 2023" by Simplilearn will take you through 5 different job role which are the highest paid in 2023. In this Cloud Computing Jobs and salary video, we'll talk about the required skills and the average salary of various job profiles in the United States. Below are the topics covered in this Cloud Computing Jobs and Salary 2023 video.
This video, "Types of Cloud Jobs In 2024," by Simplilearn, will take you through the different types of cloud computing jobs available in the field of cloud computing in 2024. In this video, we will take you through the roles and responsibilities along with the career path and salaries of each job role available in this dynamic field. In addition, you will also understand through the video which job role matches your skills and interest in this field. Below are the topics we have covered in this video on Types of Cloud Jobs in 2024.
Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...Simplilearn
Â
đ„ Become An AI & ML Expert Today: https://taplink.cc/simplilearn_ai_ml
Explore the future of AI in our Top 12 AI Technologies To Learn in 2024 video. We've curated a list of the most significant AI technologies for the coming year. Whether you're new to AI or an experienced pro, these insights are valuable. Discover machine learning, natural language processing, computer vision, and more. Stay ahead of the AI curve, and ensure you're prepared for the evolving landscape. Don't miss out on the opportunity to advance your AI knowledge and career.
Here in this Top 12 AI Technologies To Learn 2024 video, we start with:
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Â
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
âą The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
âą The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate âany matterâ at âany timeâ under House Rule X.
âą The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
The Roman Empire A Historical Colossus.pdfkaushalkr1407
Â
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesarâs dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empireâs birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empireâs society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
Â
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
A Strategic Approach: GenAI in EducationPeter Windle
Â
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Palestine last event orientationfvgnh .pptxRaedMohamed3
Â
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
2. Whatâs in it for you?
Version Control System
What is Git?
Git Architecture
Git vs GitHub
Fork and Clone
Collaborators
Commands in Git
Git Demo
Branch, Merge and Rebase
Distributed Version Control System
3. Whatâs in it for you?
Whatâs in it for you?Version Control SystemVersion Control System
4. Version Control System (VCS)
System A
File 2.1File 1.1
Repository
Version 2File 1 File 2
System A
Now we make some changes to the files in System A
File 1 ------> saved as File 1.1
File 2 ------> saved as File 2.1
The new files are stored as Version 2 in the repository
VCS allows you to store multiple versions of a system
file in the remote repository
File 1 File 2
Version 1
All the files in System A are stored as Version 1 in the
remote repository
5. Whatâs in it for you?
Whatâs in it for you?Version Control SystemDistributed Version Control
System
6. Distributed Version Control System
Distributed VCS
Developer A
Developer B Developer C
Version 1
Version 2
Version 3
Version 1
Version 2
Version 3
Version 1
Version 2
Version 3Version 1
Version 2
Version 3
All the developers have the entire copy of code on
their local system
7. Distributed Version Control System
Distributed VCS
Developer A
Developer B Developer C
Version 1
Version 2
Version 3
Version 1
Version 2
Version 3
Version 1
Version 2
Version 3Version 1
Version 2
Version 3
Distributed VCS moves from client-server
approach of Central VCS to peer-to-peer
approach
8. Distributed Version Control System
Distributed VCS
Developer A
Developer B Developer C
Version 1
Version 2
Version 3
Version 1
Version 2
Version 3
Version 1
Version 2
Version 3Version 1
Version 2
Version 3
They can update their local repositories with new data
and push it to the central server
9. Distributed Version Control System
Distributed VCS
Developer A
Developer B Developer C
Version 1
Version 2
Version 3
Version 1
Version 2
Version 3
Version 1
Version 2
Version 3Version 1
Version 2
Version 3
Git tool is an example of Distributed VCS
10. Distributed Version Control System
Remote Repository
Commit
Update
Push
Pull
Commit
Update
Push
Pull
Push Pull
Commit Update
Working
Copy
Local
Repository
Working
Copy
Local
Repository
Working
Copy
Local
Repository
11. Whatâs in it for you?
Whatâs in it for you?Version Control SystemWhat is Git?
12. What is Git?
GitHub Remote
Server
Developer 1 Developer 3
Developer 2 Git is used to track changes in the source code
Git is a distributed version control tool used for source code management
Allows multiple developers to work together
Supports non-linear development because
of thousands of parallel branches
Has the ability to handle large projects efficiently
13. Whatâs in it for you?
Whatâs in it for you?Version Control SystemGit vs GitHub
14. Git vs GitHub
2
3
4
It is installed on the local system
It is used to manage different versions of the
source code
It provides a command line to interact with the
files
1
2
3
4
GitHub is a service
It is hosted on the web
It is used to have a copy of the local
repository code
It provides a graphical interface to store
the files
1 Git is a software tool
15. Whatâs in it for you?
Whatâs in it for you?Version Control SystemGit Architecture
18. Git Architecture
Working Directory Local RepositoryStaging Area
git add
git commit
Local
After making all the changes, you commit those
files to the local repository
19. Git Architecture
Working Directory Local RepositoryStaging Area Remote Repository
git add
git commit
git push
Local Remote
You can push the committed files to the remote
repository
20. Git Architecture
Working Directory Local RepositoryStaging Area Remote Repository
git add
git commit
git push
git pull
Local Remote
git pull fetches all the changes from a remote
repository to a local repository
21. Git Architecture
Working Directory Local RepositoryStaging Area Remote Repository
git add
git commit
git push
git pull
git checkout
Local Remote
You can create new branches and switch to
them as and when required
22. Git Architecture
Working Directory Local RepositoryStaging Area Remote Repository
git add
git commit
git push
git pull
git checkout
git merge
Local Remote
After you are done with the changes, you can merge
the new branches to the master branch
23. Whatâs in it for you?
Whatâs in it for you?Version Control SystemGit Concepts
24. Forked
Test_Repository
Fork and Clone
Git Rebase
Pull from a remote
Now that we have
understood Git and itâs
architecture, letâs learn
some git concepts
Git Concepts
Adding Collaborators
Branch in Git
25. Whatâs in it for you?
Whatâs in it for you?Version Control SystemFork and Clone
26. Fork and Clone
Hey, I want to propose
some changes to your
project
Sure. Go ahead and
Fork it
27. Fork and Clone
Git allows you to fork an open source repository. When you fork a repository, you create a copy of it on your
GitHub account.
Someone elseâs
repository
Your own repository
Forked
Test_Repository
Test_Repository
Fork
28. Fork and Clone
After you fork a repository, you can clone it and have a copy of it on your local system.
Someone elseâs
repository
Your own repository
Forked
Test_Repository
Test_Repository
Fork
Local Repository
Clone to you local
computer from GitHub
29. Whatâs in it for you?
Whatâs in it for you?Version Control SystemCollaborators
30. Collaborators
Ok, let me add you as a
Collaborator on GitHub
and give you the
permission
Hey, there are some
errors in your code
repository, I need to fix it
31. Collaborators
GitHub allows you to work with users from all over the world at any given time
Collaborators are GitHub users who are given permission to edit a repository owned by someone else
Anonymous UserRepositoryâs Owner
Your repository
ï± Access all the files
ï± View the files
ï± Make changes to the files
ï± Commit the files
32. Whatâs in it for you?
Whatâs in it for you?Version Control SystemBranch in Git
33. Branch in Git
Suppose you are working on an
application and you want to
add a new feature to the app
You can create a new branch and build the new
feature on that branch
Master branch
New branch
New Feature
Application
ï± By default, you always work on the master branch
ï± The circles on the branch represent various commits made on
the branch
34. Branch in Git
ï± The diagram shows there are 2 new branches
ï± You can develop the features you want separately
Branch in Git is used to keep your changes until they are ready
Master Branch
New Branch
New Branch
Application
35. Branch in Git
ï± The diagram shows there are 2 new branches
ï± You can develop the features you want separately
Branch in Git is used to keep your changes until they are ready
ï± After you develop them completely, you can merge
the newly created branches to the master branch
New Branch
New Branch
Master Branch
Application
36. Whatâs in it for you?
Whatâs in it for you?Version Control SystemGit Merge
37. Git Merge
a b c
d e f
g
Master
Feature
Master
The base commit of
feature branch is b
There can be multiple
divergent branches
38. Git Merge
a b c
d e f
g
Master
Feature
Master
The base commit of
feature branch is b
There can be multiple
commits for each new
branch you create
39. Whatâs in it for you?
Whatâs in it for you?Version Control SystemGit Rebase
40. Git Rebase
a b c
d e f
Master
Feature
f_e_
Feature Feature
d_
Feature
The base commit of feature
branch is changed from b to c
(tip of master)
There is no extra
commit history
41. Git Rebase
a b c
d e f
Master
Feature
f_e_
Feature Feature
d_
Feature
The base commit of feature
branch is changed from b to c (tip
of master)
Resulting history is linear
with no divergent branches
42. Git Rebase
Git Rebase is the process of combining a sequence of commits to a new base commit
ï± The primary reason for rebasing is to maintain a linear project
history
Master
Feature
43. Git Rebase
Git Rebase is the process of combining a sequence of commits to a new base commit
ï± The primary reason for rebasing is to maintain a linear project
history
ï± When you rebase, you âunplugâ a branch and âreplugâ it on
the tip of another branch (usually master)
Master
FeatureFeature
44. Git Rebase
Git Rebase is the process of combining a sequence of commits to a new base commit
ï± The primary reason for rebasing is to maintain a linear project
history
ï± When you rebase, you âunplugâ a branch and âreplugâ it on
the tip of another branch (usually master)
ï± The goal of rebasing is to take all the commits from a feature
branch and put it on the master branch
Master
FeatureFeature
45. Whatâs in it for you?
Whatâs in it for you?Version Control SystemPull from Remote
46. Pull from a Remote
Suppose these 2 developers are working
together on an application
47. Pull from a Remote
They makes changes to their codes and submit
it to the remote repository
Remote
Repository
48. Pull from a Remote
Both of them want to stay updated with the
recent changes to the repository
Remote
Repository
49. Pull from a Remote
They can pull the changes from the remote
repository on to their local system
Remote
Repository
Pull from Remote
Repository
Pull from Remote
Repository
50. Pull from a Remote
Your forked
Repository
Remote
Repository
Local Repository
Pull
Your fork
Repository
ï± Use the following command to check if there
has been any change
$ git pull <RemoteName> <BranchName>
ï± If there is no change, it will notify âAlready up-
to-dateâ. If there is an change, it will merge
those changes to your local repository
You can pull in any changes that have been made from your forked remote repository
to the local repository
51. Whatâs in it for you?
Whatâs in it for you?Version Control SystemCommands in Git
52. Popular Git Commands
git init
Initialize a local Git Repository
git add / git add .
Add one or more files to staging area
git commit âm âcommit messageâ
Commit changes to head but not to the remote
repository
git status
Check the status of your current repository and list
the files you have changed
git log
Provides a list of all the commits made on your
branch
53. Popular Git Commands
git diff
View the changes you have made to the file
git push origin <branch name>
Push the branch to the remote repository so that others
can use it
Git config âglobal user.name âRogerâ
Tell Git who you are by configuring the author name
Git config âglobal user.email roger.1@gmail.com
Tell Git who you are by configuring the author
email id
git clone
Creates a Git repository copy from a remote source
54. Popular Git Commands
git remote add origin <server>
Connect your local repository to the remote server
and add the server to be able to push to it
git branch <branch name>
Create a new branch
git checkout <branch name>
Switch from one branch to another
git merge <branch name>
Merge a branch into the active branch
git rebase
Reapply commits on top of another base tip
55. Whatâs in it for you?
Whatâs in it for you?Version Control SystemDemo on Git
56. Demo on Git
1. Create a Repository
Create a âhello-worldâ folder
Move to hello-world folder
Create a new Git instance for a project
57. Demo on Git
1. Create a Repository
Create a file called readme.txt in the hello-world folder
Check the status of the repository to find out if there have been changes
58. Demo on Git
2. Create a new file, add something to that file and commit those changes to Git
Add the file you just created to the files you would like to commit to change
Commit those changes to the repositoryâs history
59. Demo on Git
2. Create a new file, add something to that file and commit those changes to Git
Add another line to readme.txt and save
View the difference between the file now and how it was at your last commit
60. Demo on Git
3. Create a GitHub account, add username to your Git configuration
Sign up to GitHub account by visiting github.com
Add your GitHub username to your Git Configuration
61. Demo on Git
4. Connect your local and remote repositories and push changes
Github.com Log in
Click the + sign in the top
right
Create a Remote repository
62. Demo on Git
4. Connect your local and remote repositories and push changes
Connect your local to your Remote
Push your file to remote
63. Demo on Git
5. Fork a project from github.com and clone it locally
Github.com/jlord/patchwork
Click the fork button at
the top right
Once the fork is complete, you will get a copy on your account. Copy your forkâs HTTP URL on the right sidebar
Someone elseâs
repository
Your own repository
Forked
Test_Repository
Test_Repository
Fork
Fork Patchwork Repository: Weâll be using github.com/jlord/patchwork
64. Demo on Git
5. Fork a project from github.com and clone it locally
Change the directory
Clone the repository onto your computer
65. Demo on Git
5. Fork a project from github.com and clone it locally
Now, you have got a copy of the repository on your local
computer which is automatically connected to the remote
repository
Go into the folder for the fork it created
If the original repository you forked from has some changes, youâd want to pull those changes as well. So, you need to add another
remote connection to the original repository with its URL
Someone elseâs
repository
Your own repository
Forked
Test_Repository
Test_Repository
Fork
Local
Repository
Clone to you local
computer from
GitHubTest_Repository
66. Demo on Git
5. Fork a project from github.com and clone it locally
67. Demo on Git
6. Create a new branch on your fork for your contribution
Name of the branch is:
add-Simplilearn
Master Branch
add-Simplilearn
Create a new branch
68. Demo on Git
6. Create a new branch on your fork for your contribution
Checkout your branch and go onto a new branch
Push your update to your fork on GitHub
69. Demo on Git
7. Add a collaborator to your project
Visit the repositoryâs GitHub
page
Click settings icon on
the right side menu
Select the collaborators
tab
Type the username and
click add
Add âreporobotâ as a collaborator to your forked Patchwork repositoryâs page
70. Demo on Git
8. Keep your file up to date by pulling in changes from collaborators
It will give a message âAlready up to dateâ, if nothing has changed. If there are changes, it will merge those changes into your
local version.
Check if Reporobot has made any changes to your branch
71. Demo on Git
9. Create a new branch, make changes and merge it to the master branch
Create a new local repository called test
Move to the test folder
Create a new git instance
72. Demo on Git
9. Create a new branch, make changes and merge it to the master branch
Create 2 text files âtest1â and âtest2â in the test repository
Add the two files to master branch and make a commit
73. Demo on Git
9. Create a new branch, make changes and merge it to the master branch
Create a new branch âtest_branchâ
Create a new text file âtest3â
74. Demo on Git
9. Create a new branch, make changes and merge it to the master branch
Add test3 file to the new branch
Move from the master branch to test_branch
75. Demo on Git
9. Create a new branch, make changes and merge it to the master branch
Merge test_branch file to master branch
The master branch has all the files now
76. Demo on Git
9. Create a new branch, make changes and merge it to the master branch
Move from the master branch to test_branch
Modify test3 file and commit the changes
77. Demo on Git
9. Create a new branch, make changes and merge it to the master branch
Check the test3 file in master branch
The file has not been modified in the
master branch
Check the file in test_branch
Switch to the master branch
78. Demo on Git
10. Rebase the newly created files on to master branch
Create 2 new text files test4 and test5
Switch to test_branch
79. Demo on Git
10. Rebase the newly created files on to master branch
Add the files to test branch
Commit the files for rebasing
80. Demo on Git
10. Rebase the newly created files on to master branch
List the files in test_branch
Switch to the master branch
81. Demo on Git
10. Rebase the newly created files on to master branch
List the files in the master branch
Switch to test_branch
Rebase master branch
82. Demo on Git
10. Rebase the newly created files on to master branch
Rebase master branch
Switch to master branch
83. Demo on Git
10. Rebase the newly created files on to master branch
Rebase test_branch
List the files in master branch