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

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

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 "# 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 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 :: git create branch based on another branch 
Shell :: git add only one file 
Shell :: vite new project 
Shell :: github merge branch to master 
Shell :: shell scripting cheat sheet 
Shell :: how to remove a repository 
Shell :: git stash only untracked files 
Shell :: install tree command 
Shell :: firefox nightly linux curl install fedora 
Shell :: stop running pre-commit hook: lint-staged 
Shell :: Dedian/Ubuntu Self Host Your Own Website for Free 
Shell :: How to Install and Configure doctl on MacOS 
Shell :: how to copy one file to multiple directories in linux 
Shell :: poetry install zsh 
Shell :: bash script mapfile with find 
Shell :: update your git identity 
Shell :: How to run test with very_good_cli in flutter 
Shell :: how to install ConfigServer Mail Manage in whm? 
Shell :: how to install brasero in linux 
Shell :: steps of first commit gitlab 
Shell :: jre-8u331-linux-x64.rpm 
Shell :: copy modified git branch files to directory 
Shell :: stop ubuntu(v22.4) from killing apps unexpectedly 
Shell :: install eb cli mac - Install pip with the script that the Python Packaging Authority provides. 
Shell :: Command to create a hardlink 
Shell :: terminal shortcuts 
Shell :: fork, remote setup, link 
Shell :: Use Kubespray to deploy a Production Ready Kubernetes Cluster 
Shell :: git pull auto rebase accept incoming 
Shell :: openssl cannot gen key 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =