Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

is there any difference between git push and git push origin master

git push assumes that you already have a remote repository defined for that
branch. In this case, the default remote origin is used.
git push origin master indicates that you are pushing to a specific remote,
in this case, origin.
This would only matter if you created multiple remote repositories in your code
base. If you're only committing to one remote repository (in this case, just
your GitHub repository), then there isn't any difference between the two.
Comment

What is the difference between git push origin and git push origin master

//push all branches to origin
git push origin

//push master branch to origin
git push origin master
Comment

PREVIOUS NEXT
Code Example
Shell :: add bootstrap to gatsby 
Shell :: how to check laravel installer version 
Shell :: nvm change node version 
Shell :: sed add line after match 
Shell :: how to find a file in linux terminal 
Shell :: what .net framework do i have installed 
Shell :: list file in tar archive 
Shell :: install itertools 
Shell :: bash split string to array 
Shell :: git get repo with composer 
Shell :: git code push 
Shell :: undo previous commit but keep changes 
Shell :: bat turn echo off 
Shell :: linux bash how to clear log files debian ubuntu centos 
Shell :: install openvino ubuntu 
Shell :: bash scripts options without arg 
Shell :: env npm 
Shell :: docker sudo how to add user 
Shell :: intsall ifconfig mac os 
Shell :: git reset hard for remote 
Shell :: how to tar 
Shell :: bash rename file 
Shell :: git submodule remove 
Shell :: extract from tar gz into folder 
Shell :: kubectl port forward 
Shell :: get disk partitions linux 
Shell :: install ros foxy 
Shell :: git change comment 
Shell :: unrachive .tar.gz 
Shell :: git push specific ssh key 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =