Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Create a new repository on the command line

echo "# REPOSITORYNAME" >> README.md
git init
git add README.md
git commit -m "COMMIT MESSAGE"
git branch -M main
git remote add origin https://github.com/USERNAME/REPOSITORYNAME.git
git push -u origin main
Comment

How to create a new repository on the command line.

echo "# REPOSITORY NAME" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin <https github file>
git push -u origin main
Comment

create a new repository on the command line

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

create a new repository on the command line

echo "# Codecademy.github.io" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/868-Anton/Codecademy.github.io.git
git push -u origin main
Comment

create a new repository on the command line

echo "# oop_labs" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/Nichiporchik-Nastya/oop_labs.git
git push -u origin main
Comment

how to create new repository in github

git init
• git add .
• git commit -m "first commit"
• git remote add
            origin https://github.com/sd1511/FinraDeck.git
• git push -u origin master
Comment

git create a new repository

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

create new repository on the command line

git init
git add README.MD
git commit -m "commit message"
git remote add origin git url_of_github_repo
git push origin master
Comment

create a new repository using command line

echo "# facebook-clone" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/sulaimanwebdev/facebook-clone.git
git push -u origin main
Comment

create a new repository on Github

echo "# visitor_management" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M Master
git remote add origin https://github.com/aymenit2008/visitor_management.git
git push -u origin Master
Comment

git create new repository

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

creating new repository in git

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

Git create a new repository on the command line

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

create a new repository on the command line

echo "# Design-Pattern" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:surajmeshram358/Design-Pattern.git
git push -u origin main
Comment

Git create a new repository on the command line

echo "# alx-zero_day" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/Kseperep1/alx-zero_day.git
git push -u origin main
Comment

create a new repository on the command line

echo "# python_dailyPractice" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/G-M-A-Al/python_dailyPractice.git
git push -u origin main
Comment

create a new repository on the command line

echo "# sy-sem-1" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/Avdhut16343/sy-sem-1.git
git push -u origin master
Comment

creat a new repository

echo "# test-" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/hawzhen-eng/test-.git
git push -u origin main
Comment

create a new repository on the command line

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

creating new repository

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

how to create a repository

echo "# my-desktop" >> README.md
git init
git add . 
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:yourcreatedgoeshere.git
git push -u origin main
Comment

create new git repository

echo "# backend" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:igc-fashion/backend.git
git push -u origin main
Comment

new repository

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

git create new repository

git clone https://github.com/myname/myapp.git
cd myapp
touch README.md
git add README.md
git commit -m "adds README"
git push -u origin master
Comment

create a new repository on the command line

echo "# Airdropping" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:codecamp-prem/Airdropping.git
git push -u origin main
Comment

create a new repository on the command line

echo "# Assignment-4" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/MinhajSiam/Assignment-4.git
git push -u origin main
Comment

create a new repository on the command line

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

Create a new repository on the command line

echo "# printf" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/Onyekachukwu-Nweke/printf.git
git push -u origin main
Comment

or create a new repository on the command line

echo "# Your Repo name" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin "your repo url"
git push -u origin main
Comment

Git create new repository

echo "# webdriverIO" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/ValeriiMandryka/webdriverIO.git
git push -u origin main

git log -p
git branch newbranch //- добавление новой ветки с названием newbranch
git branch // показывает в какой ветке находи
git branch -a //показывает все ветки 
git checkout имяВетки //переключает между ветками
git add Имяфайла или . //добавляет файл или если "." все файлы в стейдж/index т потом можно использовать команду git commit для добавления изменений
git git restore --staged . //удаляет все файлы из стейджа или вместо точки им файла который надо вывсти из стейджа 
git commit -m "Комит"//комитит изменения для файлов в индексе на стейдже
git commit -am "Комит" // комитит файлы вне стейджа
git reset HEAD~1 // отменет последний комит но сохраняет измения
git reset --hard //отказатся от локальных изменений
git reset --hard имякоммита(ХешСума) //откатывает до указанного комита и потом можно вернутся обратно запомнив название последнего комита
git reset --hard HEAD~1 // отменяет коммит и удаляет изменения в файле
git push --force // пушит с локальными изменениями без синхронизации
git restore имя файла // отменет изменения в файле
git status // показывает какие файлы в стейдже какие готовы к комит
git log //показывает комиты
git merge <название ветки>, где <название ветки> — название ветки, которая будет объединена с принимающей.
git push origin --delete tests //удалить ветку в репозитории 
Comment

CREATE A NEW REPOSITORY

echo "# HTML-SURVEY-FORM-REPO" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/DANCAN-OMONDI-OPENJI/HTML-SURVEY-FORM-REPO.git
git push -u origin main
Comment

create a new repository on the command line

echo "# RepositoryName" >> README.md
git init
git add README.md / git add . 
git commit -m "your commit"
git branch -M main
git remote add origin https://github.com/username/repositoryname.git
git push -u origin main
Comment

create a new repository on the command line

echo "# Aadidess-Facturacion-FrontEnd-Web" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/cenergon/Aadidess-Facturacion-FrontEnd-Web.git
git push -u origin main
Comment

create a new repository on the command line

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

create a new repository on the command line

echo "# motto" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/1o1development/motto.git
git push -u origin master
Comment

create a new repository on the command line

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

create new repository

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

create a new repository on the command line

# create a new repository on the command line

echo "# README" >> README.md
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:AnassAzeroual/bash-basic-scripts.git
git push -u origin main
Comment

Create a new repository on the command-line

touch README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin ssh://admin@gitdev.testinium.com:29418/oalipek.git
    git push -u origin master
Comment

Create a new repository from command line

echo "# alx-low_level_programming" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://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@github.com/AkinolaEmmanuel/alx-low_level_programming.git
git push -u origin main
Comment

PREVIOUS NEXT
Code Example
Shell :: Make sure /usr/local/bin is in your PATH environment variable. 
Shell :: heroku centos 8 
Shell :: tsc watch not support alias path 
Shell :: bash single bracket and double square bracket 
Shell :: how to get a github user profile image download url 
Shell :: get coordinates of the cursor ubuntu 
Shell :: upgrade all content database sharepoint 2013 powershell 
Shell :: record system audio linux terminal 
Shell :: fenicsproject no active host found 
Shell :: k8s rollout 
Shell :: sed replace baskslash with forwardslash 
Shell :: create file cmd windows 
Shell :: git create new repo in git bash/ terminal 
Shell :: cmd command pipe file to clipboard 
Shell :: install opencl headers ubuntu 
Shell :: install chco windows 
Shell :: rmmod: ERROR: Module nvidia_drm is in use 
Shell :: how to switch branches in git 
Shell :: awk convert first character to lowercase 
Shell :: regex in shell script 
Shell :: zsh slow cd 
Shell :: wait-on yarn 
Shell :: mysql backup dump docker file 
Shell :: ubuntu search for file whole hard drive 
Shell :: dockercompose build 
Shell :: bundle uninstall old gems 
Shell :: replace match in various grep match 
Shell :: exa ls command 
Shell :: mongodb version check 
Shell :: how to grep two terms at once grep 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =