Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to connect git repository

Git clone "repo-link"
Comment

connect project to git repository

git init -b main
git add . && git commit -m "initial commit"

To create a repository for your project on GitHub, use the gh repo create subcommand. When prompted, select Push an existing local repository to GitHub and enter the desired name for your repository. If you want your project to belong to an organization instead of your user account, specify the organization name and project name with organization-name/project-name

Alternatively, to skip all the prompts, supply the path to the repository with the --source flag and pass a visibility flag (--public, --private, or --internal). For example, gh repo create --source=. --public. Specify a remote with the --remote flag. To push your commits, pass the --push flag. For more information about possible arguments, see the GitHub CLI manual.
Comment

PREVIOUS NEXT
Code Example
Shell :: linux delete file content 
Shell :: start with in shell script 
Shell :: windows kill process running on port 
Shell :: how to use git in powershell 
Shell :: linux shell system commands 
Shell :: ffmpeg override 
Shell :: open terminal in current folder windows 
Shell :: command to delete a directory in linux 
Shell :: how to I paste in gitbash windows 
Shell :: wsl convert windows path to linux 
Shell :: docker commands 
Shell :: fortios download linux 
Shell :: the --plain command does not exist 
Shell :: ned red installation guide ubuntu 
Shell :: bash mail subject variable 
Shell :: find all file with tilda sign? 
Php :: magento2 zend log 
Php :: enable error logging php 
Php :: var_dump smarty 
Php :: drupal 8 add message 
Php :: display wp shortcode by php 
Php :: pdo last insert id 
Php :: laravel tinker update password 
Php :: bcmath php extension in ubuntu 
Php :: get page title wordpress 
Php :: laravel migrate fresh and seed 
Php :: php header redirect 
Php :: pdo transaction 
Php :: php delete all files in folder 
Php :: laravel enum migration example 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =