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

Create new repo

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

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

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

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 new repo

echo "# relaxer-app" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/DragoPvP/relaxer-app.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 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 "# 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 new repo

echo "# portfolio" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/DriiisDev/portfolio.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 repo

echo "# news" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:K41II/news.git
git push -u origin main
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 :: csv to markdown table 
Shell :: get previous git stash 
Shell :: export docker image 
Shell :: bash for do done 
Shell :: how to change the apache port in xampp 
Shell :: linux curl get request 
Shell :: docker run --entrypoint bash 
Shell :: sublime text linux 
Shell :: copy files from windows to wsl2 ubuntu 
Shell :: mongodb bitnami helm 
Shell :: how to update kali linux 2022 
Shell :: sshfs syntax with ssh key 
Shell :: nginx on ubuntu 
Shell :: rickroll ssh 
Shell :: cartesian product file shell 
Shell :: apache2 enable xml extension 
Shell :: installing kubernetes on ubuntu 20.04 
Shell :: create a tunnel via permanently 
Shell :: sed allow root login 
Shell :: spacy install italian 
Shell :: install capacitor ionic 
Shell :: ERROR: Failed building wheel for kiwisolver 
Shell :: awk pdb format 
Shell :: parallel downloading arch 
Shell :: postgresql user permissions to database 
Shell :: how to run bash scripts from local machine to remote linux machine 
Shell :: how to open nmap windows bash 
Shell :: re-entering top level after c stack overflow 
Shell :: tgz terminal 
Shell :: E: Unable to locate package rvm 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =