prisskreative
3/8/2015 - 4:47 AM

Create new repository

Create new repository

Note always start the project first init add commit and then create repo on git.


git init
git commit -m "first commit"

- Create a repository on git

git remote add origin https://github.com/prisskreative/movie-lovers.git
git push -u origin master


- look the name of the repository
git remote -v

- Looks the file change
git status


- Remove files
rm index.rb 

- Add modified files
add .
add server.rb

-Look the files green
git status

- push 
git push 
We recommend every repository include a README, LICENSE, and .gitignore.
…or create a new repository on the command line


echo "# treebook" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/prisskreative/treebook.git
git push -u origin master
…or push an existing repository from the command line


git remote add origin https://github.com/prisskreative/treebook.git
git push -u origin master
…or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.



Delete git repository init

rm -rf .git/