Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

can i create a git repository via terminal

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:alexpchin/<reponame>.git
git push -u origin master
Comment

github create repo from terminal

gh repo create project-name
Comment

how to create a github repo on linux command line

curl -i -H 'Authorization: token <your_token>' -d '{"name":"csreNewProj"}' https://api.github.com/user/repos
Comment

github create repo from terminal

gh repo create repositoryname --public
#to use gh install github cli 
#link for installation from differnet os
#https://cli.github.com/manual/installation
#if windows use
choco install gh
#after installation login to github using github cli
gh auth login
Comment

Create github repo in command line

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

PREVIOUS NEXT
Code Example
Shell :: ssh 
Shell :: isntall gnache cli 
Shell :: linus display ORACLE_HOME 
Shell :: sudo apt-get install jpeg 
Shell :: test server download speed 
Shell :: bash create symlink to symlinks 
Shell :: how to append string to file names in linux 
Shell :: copy from vim to clipboard 
Shell :: wget username and password 
Shell :: how to compare percentage value in shell script 
Shell :: verify hash windows 10 
Shell :: react navigation stack 
Shell :: print screen in ubuntu to folder 
Shell :: powershell tcp reverse shell 
Shell :: waiting for your editor to close the file 
Shell :: how to instal git on mac 
Shell :: install git linux 
Shell :: chocolatey 
Shell :: git tag sort versions 
Shell :: vi search 
Shell :: install tar.xz on linux 
Shell :: oh-my-posh autosuggestions 
Shell :: delete last pushed commit 
Shell :: how to rename a file on cmd prompt to current date 
Shell :: download dropbox on linux 
Shell :: ubuntu change /etc/resolv.conf 
Shell :: extract tar gz 
Shell :: linux extend path 
Shell :: how to download jira 
Shell :: git merge master to branch 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =