Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

create new repository in git bash

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

create github repo with bash

winpty curl -H 'Authorization: token [GENERATED_TOKEN]' https://api.github.com/user/repos -d '{"name":"[REPO_NAME_YOU_WANT]"}'

# follow steps here to generate token:
https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line

# note : you can add parameters to you command to set a description, switch to private, etc...
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

create github repository from git bash

Git and git hub repo
Comment

PREVIOUS NEXT
Code Example
Shell :: chown -R www-data:www-data 
Shell :: bash remove first and last quotes 
Shell :: apply stash git 
Shell :: how to install velero on ubuntu 
Shell :: windows commandline zip 
Shell :: qemu-img convert vdi to qcow2 
Shell :: rename a branch alredy pushed 
Shell :: npm windows error 
Shell :: bash list files in directory 
Shell :: REMOTE HOST IDENTIFICATION HAS CHANGED! how to fix in ubuntu 
Shell :: linux guzzlehttp/psr7 
Shell :: kubectl expose 
Shell :: update hour linux 
Shell :: kubectl tls skip verify 
Shell :: git merge master to branch 
Shell :: git checkout -f 
Shell :: if output is null bash 
Shell :: How to squash the last n commits together 
Shell :: redirect to file 2&1 
Shell :: how to append two file sin bash 
Shell :: git choose branch to push 
Shell :: vscode installation ubuntu 
Shell :: remove all local changes git 
Shell :: Entire screen debian 
Shell :: git push existing git repository 
Shell :: adobe photoshop on linux ubuntu 
Shell :: task manager ubuntu 
Shell :: create default package.json 
Shell :: conda update with environment from yml file 
Shell :: windows start shortcut cmd administrator 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =