Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git bash new repository

git init
git add -A
git commit -m 'Added my project'
git remote add origin git@github.com:sammy/my-new-project.git
git push -u -f origin master
git clone url
git fetch
git push (to check)
Comment

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

create github repository from git bash

Git and git hub repo
Comment

PREVIOUS NEXT
Code Example
Shell :: Install GitLab using Docker Engine 
Shell :: bash do-while 
Shell :: linux install software 
Shell :: github new repo 
Shell :: flask make host public 
Shell :: touch 
Shell :: lighthouse 
Shell :: arch linux wine 
Shell :: linux nano how to go to a certain line 
Shell :: c interpreter 
Shell :: bash shell for windows 
Shell :: substring in string shell 
Shell :: linux bash search history 
Shell :: get program path powershell 
Shell :: git create branch 
Shell :: add gist file to dev.to 
Shell :: git create server repository 
Shell :: sed two patterns 
Shell :: meterial ui installesions 
Shell :: Install Deno - Shell (Mac, Linux) 
Shell :: change or set password interactively in linux 
Shell :: create aws ec2 launch template 
Shell :: linux shell filter binary files 
Shell :: ghostscript pdf to text 
Shell :: view symbols of so linux 
Shell :: winrar script for appending date to archive 
Shell :: git disconnect user 
Shell :: oracle vm cannot install guest edition windows 10 enterprise 
Shell :: git ftp empty string is not a valid pathspec. please use . instead if you meant to match all paths 
Shell :: change default operating system grub 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =