Horje
git repo Code Example
set up git repository
# New local repository
git init
git add .
git commit -m "Initial commit"

# New remote repository
# Create remote repository (likely on github), then:
git remote add origin https://github.com/username/new_repo #https
git remote add origin git@github.com:username/new_repo #ssh
# Now push
git push -u origin master
Source: kbroman.org
git init then how to get url
below is used to a add a new remote:

git remote add origin git@github.com:User/UserRepo.git
below is used to change the url of an existing remote repository:

git remote set-url origin git@github.com:User/UserRepo.git
git repo
$ git clone <repo>
$ touch test
$ git add test
$ git commit -m "Initial commit"
$ git push origin main




Shell

Related
check and verify git version Code Example check and verify git version Code Example
How to translate a string to md5 using bash Code Example How to translate a string to md5 using bash Code Example
AppRegistryNotReady notebook django shell Code Example AppRegistryNotReady notebook django shell Code Example
how to install audacity in fedora 34 Code Example how to install audacity in fedora 34 Code Example
nodemon:%20command%20not%20found Code Example nodemon:%20command%20not%20found Code Example

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