Project Docs
  • 👋Welcome to End2End Data Science Project Documentation
  • About us
    • 💡Who we are
  • Project Guides
    • 📪Project Pipeline Overview
    • 📎Understanding Projects
  • Fundamentals
    • 🛠️Getting started
      • 💻Step 1: Github
        • Working with Git & Github
          • Setting up your repository & project
          • Git Branching
          • Push & Pull
          • Pull Request
        • Resources
        • Exercise
      • 💻Step 2: Python Setup
      • 💻Step 3: Conda Environment
        • Working with Conda Environment
        • Resources
      • 💻Step 4: MySQL, Postgres & Oracle DB
        • Quick review on SQL
        • Exercises (Under development)
      • 💻Step 5: Project Setup
      • 💻Step 6: AWS & GCP
        • Automation
      • 📉Step 7: Final Presentation
      • 🚀Step 8: Docker
        • Creating Docker Image
        • Useful Docker commands
  • 📔Interesting articles
    • Data Engineering
    • Data Science
    • ML & MLOps
  • 📔Resources
Powered by GitBook
On this page
  • Push local changes to remote repo
  • Pull changes from remote repo into the current branch
  1. Fundamentals
  2. Getting started
  3. Step 1: Github
  4. Working with Git & Github

Push & Pull

Push local changes to remote repo

$ git push origin <branch name> 

# e.g. git push origin main -> this will push to main branch
# e.g. git push origin dev1 -> this will push to dev1 branch (make sure you switch to this branch before pushing)

Pull changes from remote repo into the current branch

$ git pull origin main

# This command retrieves the changes from the main branch of your remote repository and merges them with your local main branch. However, if you are on a different branch, such as "dev1", the command will merge the changes from the remote main branch into your local "dev1" branch instead.

Note: pull is a combination of fetch and merge.

PreviousGit BranchingNextPull Request

Last updated 12 months ago

🛠️
💻