DevOps/Cloud By GK
  • DevOps/Cloud Introduction
  • 🚩AWS
    • Create AWS Account
    • Launch EC2 Instance
  • 🚩Linux
    • User Managment
      • Adding the User to Sudo group
      • visudo
    • Directory / File Management
      • Vi
      • Changing Permissions (chmod)
      • Filtering IO/File
    • Memory Management
    • Process Management
    • Network Management
    • Service Management
    • Environmental Variables
      • $PATH
    • Utilities
    • SHELL PROGRAMMING
      • Hello World
      • Variables
      • Command Line arguments
      • Conditional Statements
      • Array
      • Loops
      • Functions
      • AWK
      • sed
      • Example Useful Scripts
      • Basic -> Advanced
  • 🚩git
    • Introduction
    • Creating GitHub Account
    • Installation
      • Git Bash In Windows
      • Git In VS Code
      • Git In Eclipse
      • Git CLI in Linux
  • Creating Git Remote Repository
  • Git Commands L -> R
  • Git Commands L <- R
  • Git Branch Commands
  • Using SSH (Password Less)
  • 🚩maven
    • Introduction
    • Installation
    • POM.xml
    • Goals
  • 🚩SonarQube
    • Introduction
    • Sonar Cloud
    • Creating Project In SonarCloud
    • Installing Sonar-Scanner
    • Triggering Scan
  • 🚩Nexus
    • Introduction
    • Installation of Nexus
    • Creating Repository
    • Uploading Artifacts to Repository
  • 🚩Jenkins
    • Introduction
    • Installation of Jenkins
    • First Job In Jenkins
    • Git + Jenkins
      • WebHook
    • Maven + Jenkins
    • Sonar-Scanner + Jenkins
    • Nexus + Jenkins
Powered by GitBook
On this page
  • git clone
  • git pull
  • git fetch
  • git merge

Git Commands L <- R

git clone

The git clone command is used to create a local copy of a remote Git repository. Here's the basic syntax:

git clone <remote_repository_url>

git pull

The git pull command is used to fetch and merge changes from a remote Git repository into your local working copy. It combines the git fetch and git merge commands into a single command.

git pull origin <branch>

git fetch

The git fetch command is used to retrieve the latest changes from a remote Git repository without merging those changes into your local working copy. It only updates the remote-tracking branches in your local repository and does not modify your local working files.

Here's the basic syntax:

git fetch origin <branch>

git merge

The git merge command is used to combine changes from one branch into another. It's often used to integrate changes made on a feature branch back into the main branch of a repository.

git merge <branch>
PreviousGit Commands L -> RNextGit Branch Commands

Last updated 2 years ago