Friday, August 22, 2014

GitHub file/folder addition/deletion CLI

Launch Git Bash program installed on your system.

To connect to sum GIT repository
git init
git remote add origin https://github.com/tapeshmaheshwari/JavaScript.git

To add a file/folder into repository
git add test.html
git commit
git push

To remove a file from repository
git rm test.html
git commit
git push

To checkout full repository
git clone https://github.com/tapeshmaheshwari/JavaScript.git

No comments: