Git Commands

Get all files from git in empty folder
$ git clone git@github.com:prakash-koirala/Project2.git

Add/Delete includes following 3 steps
1.To add
$ git add .

2.To commit
$ git commit -m “new files added”

3.To push files
$ git push origin master

Get any files from git
$ git pull origin master

Ignore files(.gitignore)
/file.php
/folder

 

Share on Facebook0Tweet about this on Twitter0Share on Google+0Pin on Pinterest0Share on LinkedIn0Share on Reddit0
It's only fair to share...

Add Comment

Required fields are marked *. Your email address will not be published.