SlideShare a Scribd company logo
Git-GITHUB
Beginner’s Tutorial
Anurag Deb Roy
HUB4TECHIE.COM
Hub4techie.com Anurag Deb Roy
What is Git:
Git is a version control system, a tool to manage your source code history.
I.e. to track all the changes made to the file.
"Git is a free and open source distributed version control system designed to handle
everything from small to very large projects with speed and efficiency"
Centralized vs Distributed Version Control System
Drawbacks : If anything happens in central repository, we don’t have any backup.
Distributed Version Control System
Hub4techie.com Anurag Deb Roy
Backup is made in local repository.
Only need to be online when changes are committed to main server.
What is GitHub:
GitHub is a hosting service for Git repositories.
"GitHub is a web-based Git repository hosting service, which offers all of the distributed
revision control and source code management (SCM) functionality of Git as well as adding
its own features."
Github provides access control and several collaboration features such as wikis, task
management, and bug tracking and feature requests for every project.
You do not need GitHub to use Git.
GitHub (and any other local, remote or hosted system) can all be peers in the same
distributed versioned repositories within a single project.
Github allows you to:
● Share your repositories with others.
● Access other user's repositories.
Hub4techie.com Anurag Deb Roy
● Store remote copies of your repositories (github servers) as backup of your local
copies.
Architecture
Privileges/Access Levels
Owner
Has full administrative access to the entire organization.
Member
Can see every member and non-secret team in the organization, and can create new
repositories.
Let’s Start workingwith Git commandLine
$ git --version
git version 2.16.2.windows.1
Now we need to set up some global configuration.
Why Important ?
Because if you are working with other developers then everybody needs to know who is
checking in & out or making the changes.
$ git config --global user.name "Anurag Deb"
$ git config --global user.email "anuragdeb8@gmail.com"
To check all the configurations done
$ git config --list
core.symlinks=false
Hub4techie.com Anurag Deb Roy
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=E:/Git_Install/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
user.name=Anurag Deb
user.email=anuragdeb8@gmail.com
NEED Help ?
git help <verb>
Ex : git help config Or
git <verb> --help
Ex : git config --help // git-config.html will open
Hub4techie.com Anurag Deb Roy
Getting Started
Two common Scenarios :
1) Existing Project/Repo
2) New Project/Repo
A new repo from scratch
Say you’ve just got some data from a collaborator and are about to start exploring it.
● Create a directory to contain the project.
● Type git init // initialized empty GIT repository in .folder path
● git status // nothing to commit
● dir > test1.txt //Creates text file
Ignore some files if you don’t want to track those files.
$ touch .gitignore
Edit .gitignore
.Project //any folder you don’t to track
*.bat //any file you don’t to track
After adding check git status.
Where are you now?
Working Directory : you are working right now.
Staging Area : We organise what we want to commit to our repository
Repository : Local repository
Hub4techie.com Anurag Deb Roy
Lets Start
● Type git add to add the files so that we start tracking the files
● Type git add -A // to add all files
● Type git commit
But it’s good to add messages while doing commit.
Use git commit -m “message”
Mukta@Mukta-PC MINGW64 /E/Study/GitTuts/LocalRepo (master)
$ git commit -m "Initial commit"
[master (root-commit) 964b9f5] Initial commit
3 files changed, 212 insertions(+)
create mode 100644 .gitignore
create mode 100644 ShellScript.sh
create mode 100644 ShellScriptFile2.sh
$ git status
On branch master
nothing to commit, working tree clean
$ git log
commit 964b9f51604c8bdf854a47d7f6ba497e64015b58 (HEAD -> master)
Author: Anurag Deb <anuragdeb8@gmail.com>
Date: Sat Mar 24 23:42:18 2018 +0530
Initial commit
Second Scenario : Existing Repository
$ git clone <url> <where to clone>
$ git clone ../remote_repo.git .
$ git clone https://github.com/anuragdeb3/Loadbuster .
Viewing Information aboutthe remote repository
Hub4techie.com Anurag Deb Roy
$ git remote -v
$ git branch -a
Pushing Changes (After Some changes to the code)
git diff
git status
git add -A
git commit -m “added some print lines”
While we were working on our code there might have been changes in the files done by some other
developers, That’s why we need to pull first then push the code.
$ git pull origin master
Will pull any changes from the last time we did the pull operation.
Origin : is the remote repository.
Master : It is the branch where we want to push to.
For now we have worked with local and remote repositories.
Let us Check out the workflow
Common Workflow
For now we were directly working on the master branch.
Branching is the way to work on different versions of a repository at one time.
By default your repository has one branch named master which is considered to be the definitive
branch. We use branches to experiment and make edits before committing them to master.
When you create a branch off the master branch, you’re making a copy, or snapshot, of master as it
was at that point in time. If someone else made changes to the master branch while you were
working on your branch, you could pull in those updates.
Create A Branch For Desired Feature
$ git branch scriptEdits
$ git branch // lists all local branches
* master // * means the current branch we are working on
Hub4techie.com Anurag Deb Roy
scriptEdits // if you want to work on another branch you need to checkout to that branch
$ git checkout scriptEdits
Switched to branch 'scriptEdits'
$ git branch
Do some changes to script and changes will be done only to branch not master
$ git status
On branch scriptEdits
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: Buster.sh
no changes added to commit (use "git add" and/or "git commit -a")
$ git add -A
$ git status
On branch scriptEdits
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: Buster.sh
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: Buster.sh
$ git commit -m "made changes to exit function"
[scriptEdits 757f2d9] made changes to exit function
1 file changed, 2 insertions(+)
After CommitPush Branch To Remote
Hub4techie.com Anurag Deb Roy
$ git push -u origin scriptEdits
-u is for set upstream i.e. associate our local branch with the remote branch
$ git branch -a
master
* scriptEdits
remotes/origin/HEAD -> origin/master //pointer to the master
remotes/origin/master
remotes/origin/scriptEdits
After all unit tests we can Merge A Branch
$ git branch -a
master
* scriptEdits
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/scriptEdits
$ git checkout master
Switched to branch 'master'
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
$ git branch
* master
scriptEdits
$ git pull origin master
From https://github.com/anuragdeb3/Loadbuster
* branch master -> FETCH_HEAD
Already up to date.
Hub4techie.com Anurag Deb Roy
$ git branch --merged
* master // showing only master as other branches have not been merged yet
$ git merge scriptEdits
Updating 757f2d9..efe5a10
Fast-forward
Buster.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
$ git push origin master
Username for 'https://github.com': anuragdeb3
Total 0 (delta 0), reused 0 (delta 0)
To https://github.com/anuragdeb3/Loadbuster
6d7f7e5..efe5a10 master -> master
Delete a Branch
$ git branch --merged
$ git branch -d scriptEdits
$ git branch -a
$ git push origin --delete scriptEdits
Download :https://git-scm.com/download/win
Chrome Previous Releases : https://www.slimjet.com/chrome/google-chrome-old-version.php

More Related Content

PDF
Advanced Git Tutorial
Sage Sharp
 
PDF
Intro to Git and GitHub
Panagiotis Papadopoulos
 
PPTX
Git One Day Training Notes
glen_a_smith
 
PDF
git and github
Darren Oakley
 
PDF
Git basics
GHARSALLAH Mohamed
 
PPTX
Git and github fundamentals
RajKharvar
 
PDF
Github - Git Training Slides: Foundations
Lee Hanxue
 
PPTX
Intro to git and git hub
Venkat Malladi
 
Advanced Git Tutorial
Sage Sharp
 
Intro to Git and GitHub
Panagiotis Papadopoulos
 
Git One Day Training Notes
glen_a_smith
 
git and github
Darren Oakley
 
Git basics
GHARSALLAH Mohamed
 
Git and github fundamentals
RajKharvar
 
Github - Git Training Slides: Foundations
Lee Hanxue
 
Intro to git and git hub
Venkat Malladi
 

What's hot (20)

KEY
The everyday developer's guide to version control with Git
E Carter
 
PPTX
Git 101 for Beginners
Anurag Upadhaya
 
PDF
Git and github 101
Senthilkumar Gopal
 
PPTX
Git - Basic Crash Course
Nilay Binjola
 
PDF
Git and git flow
Fran García
 
PPT
Introduction to Git and Github
Somkiat Puisungnoen
 
PPTX
Git and GitHub
Md. Ahsan Habib Nayan
 
PDF
Introduction to Git and Github
Houari ZEGAI
 
PPTX
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Simplilearn
 
PPTX
Git in 10 minutes
Safique Ahmed Faruque
 
PPTX
GitHub Basics - Derek Bable
"FENG "GEORGE"" YU
 
PPT
Git basic
Emran Ul Hadi
 
PDF
Git real slides
Lucas Couto
 
PPTX
Git and github
Sayantika Banik
 
PPTX
Introduction git
Dian Sigit Prastowo
 
PPTX
Github basics
Radoslav Georgiev
 
PPTX
CICD Pipeline Using Github Actions
Kumar Shìvam
 
KEY
Git and GitHub
James Gray
 
PPT
Git workflows presentation
Mack Hardy
 
PDF
Learning git
Sid Anand
 
The everyday developer's guide to version control with Git
E Carter
 
Git 101 for Beginners
Anurag Upadhaya
 
Git and github 101
Senthilkumar Gopal
 
Git - Basic Crash Course
Nilay Binjola
 
Git and git flow
Fran García
 
Introduction to Git and Github
Somkiat Puisungnoen
 
Git and GitHub
Md. Ahsan Habib Nayan
 
Introduction to Git and Github
Houari ZEGAI
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Simplilearn
 
Git in 10 minutes
Safique Ahmed Faruque
 
GitHub Basics - Derek Bable
"FENG "GEORGE"" YU
 
Git basic
Emran Ul Hadi
 
Git real slides
Lucas Couto
 
Git and github
Sayantika Banik
 
Introduction git
Dian Sigit Prastowo
 
Github basics
Radoslav Georgiev
 
CICD Pipeline Using Github Actions
Kumar Shìvam
 
Git and GitHub
James Gray
 
Git workflows presentation
Mack Hardy
 
Learning git
Sid Anand
 
Ad

Similar to Git github (20)

KEY
Let's Git this Party Started: An Introduction to Git and GitHub
Kim Moir
 
PDF
Git Init (Introduction to Git)
GDSC UofT Mississauga
 
PDF
Git Developer Cheatsheet
Abdul Basit
 
PDF
Did you git yet?
Michael Fong
 
DOCX
Git setuplinux
Shubham Verma
 
DOCX
GitSetupLinux
Shubham Verma
 
PPTX
Introduction to Git and Github
Md Atique Ahmed Ziad
 
PPTX
GitHub Event.pptx
KeerthanaJ32
 
PPTX
GIT in a nutshell
alignan
 
KEY
Gittalk
prtinsley
 
PPTX
git github PPT_GDSCIIITK.pptx
AbelPhilipJoseph
 
PDF
Git training
Jérémy Gobet
 
PPTX
Git session Dropsolid.com
dropsolid
 
PDF
Intro to Git & GitHub
GoogleDevelopersStud
 
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
AmaraCostachiu
 
PDF
git-commands-cheat-sheet-infopediya-com.pdf
murad khan
 
PPTX
Git and Github
Teodora Ahkozidou
 
PPT
Fundamentals and basics of Git and commands
DivyanshGupta922023
 
PPTX
Introduction to Git and GitHub
Bioinformatics and Computational Biosciences Branch
 
PPTX
Git
Shinu Suresh
 
Let's Git this Party Started: An Introduction to Git and GitHub
Kim Moir
 
Git Init (Introduction to Git)
GDSC UofT Mississauga
 
Git Developer Cheatsheet
Abdul Basit
 
Did you git yet?
Michael Fong
 
Git setuplinux
Shubham Verma
 
GitSetupLinux
Shubham Verma
 
Introduction to Git and Github
Md Atique Ahmed Ziad
 
GitHub Event.pptx
KeerthanaJ32
 
GIT in a nutshell
alignan
 
Gittalk
prtinsley
 
git github PPT_GDSCIIITK.pptx
AbelPhilipJoseph
 
Git training
Jérémy Gobet
 
Git session Dropsolid.com
dropsolid
 
Intro to Git & GitHub
GoogleDevelopersStud
 
Git and GitHub Workshop of GDG on Campus UNSTPB
AmaraCostachiu
 
git-commands-cheat-sheet-infopediya-com.pdf
murad khan
 
Git and Github
Teodora Ahkozidou
 
Fundamentals and basics of Git and commands
DivyanshGupta922023
 
Ad

More from Anurag Deb (8)

DOCX
Open Script (OATS)
Anurag Deb
 
DOCX
Tutorials on Macro
Anurag Deb
 
PDF
letter of appreciation 2
Anurag Deb
 
PDF
letter of appreciation 1
Anurag Deb
 
PDF
Article on The Electronic Health Record
Anurag Deb
 
PPT
Electronic health records
Anurag Deb
 
PDF
Let me design
Anurag Deb
 
DOCX
Virtual Memory In Contemporary Microprocessors And 64-Bit Microprocessors Arc...
Anurag Deb
 
Open Script (OATS)
Anurag Deb
 
Tutorials on Macro
Anurag Deb
 
letter of appreciation 2
Anurag Deb
 
letter of appreciation 1
Anurag Deb
 
Article on The Electronic Health Record
Anurag Deb
 
Electronic health records
Anurag Deb
 
Let me design
Anurag Deb
 
Virtual Memory In Contemporary Microprocessors And 64-Bit Microprocessors Arc...
Anurag Deb
 

Recently uploaded (20)

PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PPTX
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
Basics and rules of probability with real-life uses
ravatkaran694
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
How to Apply for a Job From Odoo 18 Website
Celine George
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 

Git github

  • 2. Hub4techie.com Anurag Deb Roy What is Git: Git is a version control system, a tool to manage your source code history. I.e. to track all the changes made to the file. "Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency" Centralized vs Distributed Version Control System Drawbacks : If anything happens in central repository, we don’t have any backup. Distributed Version Control System
  • 3. Hub4techie.com Anurag Deb Roy Backup is made in local repository. Only need to be online when changes are committed to main server. What is GitHub: GitHub is a hosting service for Git repositories. "GitHub is a web-based Git repository hosting service, which offers all of the distributed revision control and source code management (SCM) functionality of Git as well as adding its own features." Github provides access control and several collaboration features such as wikis, task management, and bug tracking and feature requests for every project. You do not need GitHub to use Git. GitHub (and any other local, remote or hosted system) can all be peers in the same distributed versioned repositories within a single project. Github allows you to: ● Share your repositories with others. ● Access other user's repositories.
  • 4. Hub4techie.com Anurag Deb Roy ● Store remote copies of your repositories (github servers) as backup of your local copies. Architecture Privileges/Access Levels Owner Has full administrative access to the entire organization. Member Can see every member and non-secret team in the organization, and can create new repositories. Let’s Start workingwith Git commandLine $ git --version git version 2.16.2.windows.1 Now we need to set up some global configuration. Why Important ? Because if you are working with other developers then everybody needs to know who is checking in & out or making the changes. $ git config --global user.name "Anurag Deb" $ git config --global user.email "[email protected]" To check all the configurations done $ git config --list core.symlinks=false
  • 5. Hub4techie.com Anurag Deb Roy core.autocrlf=true core.fscache=true color.diff=auto color.status=auto color.branch=auto color.interactive=true help.format=html rebase.autosquash=true http.sslcainfo=E:/Git_Install/mingw64/ssl/certs/ca-bundle.crt http.sslbackend=openssl diff.astextplain.textconv=astextplain filter.lfs.clean=git-lfs clean -- %f filter.lfs.smudge=git-lfs smudge -- %f filter.lfs.process=git-lfs filter-process filter.lfs.required=true user.name=Anurag Deb [email protected] NEED Help ? git help <verb> Ex : git help config Or git <verb> --help Ex : git config --help // git-config.html will open
  • 6. Hub4techie.com Anurag Deb Roy Getting Started Two common Scenarios : 1) Existing Project/Repo 2) New Project/Repo A new repo from scratch Say you’ve just got some data from a collaborator and are about to start exploring it. ● Create a directory to contain the project. ● Type git init // initialized empty GIT repository in .folder path ● git status // nothing to commit ● dir > test1.txt //Creates text file Ignore some files if you don’t want to track those files. $ touch .gitignore Edit .gitignore .Project //any folder you don’t to track *.bat //any file you don’t to track After adding check git status. Where are you now? Working Directory : you are working right now. Staging Area : We organise what we want to commit to our repository Repository : Local repository
  • 7. Hub4techie.com Anurag Deb Roy Lets Start ● Type git add to add the files so that we start tracking the files ● Type git add -A // to add all files ● Type git commit But it’s good to add messages while doing commit. Use git commit -m “message” Mukta@Mukta-PC MINGW64 /E/Study/GitTuts/LocalRepo (master) $ git commit -m "Initial commit" [master (root-commit) 964b9f5] Initial commit 3 files changed, 212 insertions(+) create mode 100644 .gitignore create mode 100644 ShellScript.sh create mode 100644 ShellScriptFile2.sh $ git status On branch master nothing to commit, working tree clean $ git log commit 964b9f51604c8bdf854a47d7f6ba497e64015b58 (HEAD -> master) Author: Anurag Deb <[email protected]> Date: Sat Mar 24 23:42:18 2018 +0530 Initial commit Second Scenario : Existing Repository $ git clone <url> <where to clone> $ git clone ../remote_repo.git . $ git clone https://github.com/anuragdeb3/Loadbuster . Viewing Information aboutthe remote repository
  • 8. Hub4techie.com Anurag Deb Roy $ git remote -v $ git branch -a Pushing Changes (After Some changes to the code) git diff git status git add -A git commit -m “added some print lines” While we were working on our code there might have been changes in the files done by some other developers, That’s why we need to pull first then push the code. $ git pull origin master Will pull any changes from the last time we did the pull operation. Origin : is the remote repository. Master : It is the branch where we want to push to. For now we have worked with local and remote repositories. Let us Check out the workflow Common Workflow For now we were directly working on the master branch. Branching is the way to work on different versions of a repository at one time. By default your repository has one branch named master which is considered to be the definitive branch. We use branches to experiment and make edits before committing them to master. When you create a branch off the master branch, you’re making a copy, or snapshot, of master as it was at that point in time. If someone else made changes to the master branch while you were working on your branch, you could pull in those updates. Create A Branch For Desired Feature $ git branch scriptEdits $ git branch // lists all local branches * master // * means the current branch we are working on
  • 9. Hub4techie.com Anurag Deb Roy scriptEdits // if you want to work on another branch you need to checkout to that branch $ git checkout scriptEdits Switched to branch 'scriptEdits' $ git branch Do some changes to script and changes will be done only to branch not master $ git status On branch scriptEdits Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: Buster.sh no changes added to commit (use "git add" and/or "git commit -a") $ git add -A $ git status On branch scriptEdits Changes to be committed: (use "git reset HEAD <file>..." to unstage) modified: Buster.sh Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: Buster.sh $ git commit -m "made changes to exit function" [scriptEdits 757f2d9] made changes to exit function 1 file changed, 2 insertions(+) After CommitPush Branch To Remote
  • 10. Hub4techie.com Anurag Deb Roy $ git push -u origin scriptEdits -u is for set upstream i.e. associate our local branch with the remote branch $ git branch -a master * scriptEdits remotes/origin/HEAD -> origin/master //pointer to the master remotes/origin/master remotes/origin/scriptEdits After all unit tests we can Merge A Branch $ git branch -a master * scriptEdits remotes/origin/HEAD -> origin/master remotes/origin/master remotes/origin/scriptEdits $ git checkout master Switched to branch 'master' Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) $ git branch * master scriptEdits $ git pull origin master From https://github.com/anuragdeb3/Loadbuster * branch master -> FETCH_HEAD Already up to date.
  • 11. Hub4techie.com Anurag Deb Roy $ git branch --merged * master // showing only master as other branches have not been merged yet $ git merge scriptEdits Updating 757f2d9..efe5a10 Fast-forward Buster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) $ git push origin master Username for 'https://github.com': anuragdeb3 Total 0 (delta 0), reused 0 (delta 0) To https://github.com/anuragdeb3/Loadbuster 6d7f7e5..efe5a10 master -> master Delete a Branch $ git branch --merged $ git branch -d scriptEdits $ git branch -a $ git push origin --delete scriptEdits Download :https://git-scm.com/download/win Chrome Previous Releases : https://www.slimjet.com/chrome/google-chrome-old-version.php