Horje
pushing to existing repo Code Example
git push existing repo
cd existing_folder
git init
git remote add origin https://gitlab.com/abc.git
git add .
git commit -m "Initial commit"
git push -u origin master
upload new repo to git
echo "# Can-I-Shop-2" >> README.md
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/username/projectname.git
git push -u origin master
                
push an existing repository from the command line
git remote add origin https://github.com/arjungautam1/JavaFX.git
git branch -M main
git push -u origin main
Source: github.com
pushing to existing repo
git remote add origin https://github.com/DriiisDev/portfolio.git
git branch -M main
git push -u origin main
Source: github.com




Shell

Related
regex match + n lines Code Example regex match + n lines Code Example
git checkout -b doesn't show updated code Code Example git checkout -b doesn't show updated code Code Example
how to update pg_dump version linux Code Example how to update pg_dump version linux Code Example
git murge branch with master Code Example git murge branch with master Code Example
sudo: gitlab-runner: command not found Code Example sudo: gitlab-runner: command not found Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12