Tag : Learn GIT

Quick Guide To Learn GIT

Create repo on Github by going to https://github.com/new

git init 

(Initialize git on local folder)

git pull

http://github.com/username/repository.git (Pull repository to local folder)

touch filename.ext

(Create a file in folder)

git add . 

(Add your changes to push to remote)

git commit -m 'commit msg' 

(Write commit message)

git remote add origin http://github.com/username/repository.git 

(In which repository you would like to push on remote)

git push origin master

(Done)