Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to push code to github

git init
git add .
git commit -m "[message]"
git branch -M master
git remote add origin "github repository link"
git push -u origin master
Comment

push code to github repository from command line

git remote add origin https://github.com/Agustine-dev/cinemaos.git
git branch -M main
git push -u origin main
Comment

push code to github

echo "# e-commerce-crud" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/mohnishdevelops/e-commerce-crud.git
git push -u origin main
Comment

how to push your code to github

We make a change in one branch, and we want carry that
change to another branch. In order two merge two branches,
we need to
1. Switch to the branch where we want to take the changes to.
git checkout master(recently changed to main)
2. Run the merge command by mentioning the branch name
where the changes are.
git merge develop
Takes the changes from develop and merges into my current
branch (master)
git branch -d <branch_name> deletes the branch.
If we have unmerged changes, this command gives a warning
and does not delete.
git branch -D <branch_name> deletes the branch even if it has
unmerged changes. Gives no warning.
git push --set-upstream origin <branch_name> it creates a
new branch with given name in the remote and pushes the
changes from local branch to the new branch.
Comment

command to push code to github

procedure to add repository from local system to remote system
Comment

PREVIOUS NEXT
Code Example
Shell :: powershell get wifi password 
Shell :: how to download octave in ubuntu 
Shell :: commit specific file in git 
Shell :: how to change to previous directory 
Shell :: kubectl run ubuntu 
Shell :: install anaconda ubuntu 16.04 
Shell :: how to install tar.xz file in ubuntu 
Shell :: bash list process 
Shell :: pwd windows 
Shell :: netflix app ubuntu 
Shell :: gdal_translate kmz transparent nodata 
Shell :: mysql password inline cli 
Shell :: Color "normal" not understood 
Shell :: how to view pdf in terminal 
Shell :: zip file in terminal 
Shell :: kill proccess 
Shell :: install cron into shell script 
Shell :: install htop sudo add-apt-repository universe 
Shell :: bash store directory list array 
Shell :: add migrations inside specific directory 
Shell :: install extensions devcontainer.json for codespaces 
Shell :: Install GIMP Ubuntu 18.04 terminal 
Shell :: restart hamachi fedora 
Shell :: micronucleus: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory 
Shell :: save vscode account details linux 
Shell :: Command to create a hardlink 
Shell :: add second clock to windows powershell 
Shell :: Do The Right eXtraction 
Shell :: npm ldapjs 
Shell :: terminal grep get line with length 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =