Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git pull origin master

git checkout my_branch    # move on your branch (make sure it exists)
git fetch origin          # fetch all changes
git pull origin master    # pull changes from the origin remote, master branch and merge them into my_branch
git push origin my_branch # push my_branch
Comment

how to git pull origin master

git pull origin
Comment

git pull origin main

to pull project from github to your local machine :
1-create a repo on  github 
2-open the repo and go to repo code , click on the green button "Code"
3-copy the link "SSH" or "HTTPS" 
4-go to your command line app on your machine 
5-run this command : git clone (Link from  step 3)
6-press Enter and you will have your project locally 
<!--->
if you alrady did that and you just want to pull the changes from your github 
just open your command line app and go to the project path or directory 
then : git pull origin main || git pull origin " any branch Name"
this will pull all changes that you don't have them locally
Comment

PREVIOUS NEXT
Code Example
Shell :: Git change branch from branch to main 
Shell :: install git on wsl2 ubuntu 
Shell :: find command also return directory names? 
Shell :: BBBBBBBBBBBB 
Shell :: change permissions on all files in all sub-directories 
Shell :: datetime calculation in shell 
Shell :: vboxmanage export vm to ova 
Shell :: how t o force install a package even it is already install pip 
Shell :: validate ssl certificate on website using curl 
Shell :: change fc editor 
Shell :: create service for gunicorn in linux 
Shell :: get docker resource usage 
Shell :: dependencies dpkg 
Shell :: check disk space ubuntu from terminal 
Shell :: resolve git conflicts github button disabled 
Shell :: Could not install Visual Studio Build Tools. 
Shell :: set sublime text as git editor 
Shell :: windows get hostname from ip 
Shell :: who create git 
Shell :: extract bz2 linux 
Shell :: how to remove nvm 
Shell :: tor mac command line 
Shell :: convert csv to json powershell 
Shell :: clear ram cache linux 
Shell :: how to install aplay in ubuntu 
Shell :: git push rejected 
Shell :: alpine sudo not found 
Shell :: git ignore mode 
Shell :: remove remote git 
Shell :: how to drive linux 2020 bluetooth on ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =