Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

add my current project to an already existing GitHub repository

git init
git add .
git commit -m "my commit"

git remote set-url origin <remote repository URL>	// setting
// or
git remote add origin <remote repository URL>		// adding
// eventually recommit
git commit -m "my 2nd commit"

git push -u origin master
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #current #project #existing #GitHub #repository
ADD COMMENT
Topic
Name
6+4 =