Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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

how to push local repo to github

/*
|==================================================================
| How to init and push local repository code to remote (github)
|==================================================================
*/

STEP-1 (Initialize git ropository on local machine)
git init

STEP-2 (add all file to local git repo)
git add .

STEP-3 (commit your code to local repo)
git commit -m "first commit"

STEP-4 (select branch)
git branch -M main

STEP-5 (add remote address to local git repo)
git remote add origin https://github.com/Shahzad-Mahota/test-project

STEP-6 (push code to remote)
git push -u origin main
Comment

Push github repo in command line

git remote add origin https://github.com/User/Project
git branch -M main
git push -u origin main
Comment

push git repo to github

# Create a new repository on the command line
 
touch README.md
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
 
# Push an existing repository from the command line
 
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
Comment

PREVIOUS NEXT
Code Example
Shell :: $path mac 
Shell :: how to install xdm ubuntu 20.04 
Shell :: how to use string format in powershell 
Shell :: ssh agent remember passphrase 
Shell :: change remote to use ssh git command 
Shell :: how to enable the Visual Studio Code GitHub Support and set a Personal Access Token 
Shell :: how to make a .sh file executable 
Shell :: heroku buildpacks 
Shell :: vagrant@127.0.0.1: permission denied (publickey). 
Shell :: linux video player 
Shell :: enzyme npm install 
Shell :: moving files in terminal 
Shell :: find home dir for user 
Shell :: how to commit a specific file in git 
Shell :: install spark on mac 
Shell :: bash split string into variables 
Shell :: linux terminal commands 
Shell :: adb install apk 
Shell :: run zipkin-server on docker 
Shell :: navigate to folder on mac 
Shell :: windows edit file cmdf 
Shell :: how do i make a gif from youtube 
Shell :: install rasa 
Shell :: git github private fatal repository not found 
Shell :: checkout remote branch 
Shell :: how to docker login with gitlab 
Shell :: how to remove dpkg package in ubuntu 
Shell :: fish alias 
Shell :: microsoft store installation location 
Shell :: apache start stop restart 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =