Skip to content

Instantly share code, notes, and snippets.

@ravixp
Last active September 12, 2017 13:42
Show Gist options
  • Select an option

  • Save ravixp/13a3baacae95ea357b1ff8c73a63ee50 to your computer and use it in GitHub Desktop.

Select an option

Save ravixp/13a3baacae95ea357b1ff8c73a63ee50 to your computer and use it in GitHub Desktop.
GIT: Useful Commands

On the develop website

To see the git history

$ git log

To check the git status

$ git status

To add new files and modified files

$ git add /home/example/public_html/newfile.php

To add new files files individually

$ git add /home/example/public_html/newfile.php

To commit git

$ git commit -m "Description"

To add all new files files automatically

$git commit -a -m "Description"

To push the committed git changes to gitlab.com

$ git push

On the live server

$ git pull
@ravixp

ravixp commented Jul 11, 2017

Copy link
Copy Markdown
Author

Thanks, Giorgio 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment