Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git push local repo to remote

# Create a new repository on the command line
//Just one note: if the repository doesn't exist in Github, first you will have to create it: https://help.github.com/articles/creating-a-new-repository/
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
 
# Push an existing repository from the command line
Source by devconnected.com #
 
PREVIOUS NEXT
Tagged: #git #push #local #repo #remote
ADD COMMENT
Topic
Name
1+2 =