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 :: show hidden files mac 
Shell :: launch sublime from terminal 
Shell :: how to install and connect to ftp on ubuntu 18 
Shell :: powershell to connect to remote computer 
Shell :: angular 8 install agm 
Shell :: pdf file 30mb 
Shell :: create github pages from repo 
Shell :: git reset hard directory 
Shell :: redis scan keys and print values shell 
Shell :: git clone does not show all branches 
Shell :: bash script to get all git branches from remote 
Shell :: copy file from one directory to another in linux 
Shell :: command to open snap gui 
Shell :: git list files only upto 1-levels 
Shell :: how to show two table side by side in github readme 
Shell :: uninstall en_web_core md 
Shell :: Add base url to react router for gh-pages deployment 
Shell :: setting config source di linux 
Shell :: The fingerprint for the RSA key sent by the remote host is 
Shell :: epoch bash 
Shell :: wp unpublish post cli 
Shell :: Check status service Apache FreeBSD 
Shell :: are trying to install ruby-2.7.0 on heroku-20. remote: ! remote: ! Ruby ruby-2.7.0 is present on the following stacks: remote: ! remote: ! - heroku-18 
Shell :: sort descending order linux 
Shell :: get number input batch 
Shell :: install ws-redis 
Shell :: laravel nginx 404 not found 
Shell :: list of full path of file in text file ubuntu 
Shell :: pip install flask dockerfile 
Shell :: git clone all repositories in organization 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =